Description
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Versions
What package version of the SDK are you using: 4.20.0
What nodejs version are you using: 18
What browser version are you using: -
What os are you using: MacOS and Linux (prod)
Describe the bug
The channel moderation settings allow users in the Teams UI to disallow bots from posting into the channel:
When unticking that box and the turning the whole channel moderation feature off
bots still cannot post into that channel. The error message thrown by the botbuilder framework is "User blocked conversation with the bot."
Turning the moderation back on, ticking the box, then turning it off makes it work again.
-> It seems like the "Allow bots to post into this channel" box is evaluated regardless of the channel moderation feature being on or off for that channel.
To Reproduce
Steps to reproduce the behavior:
- Go to Teams -> Channel settings -> Turn on channel moderation
- Make sure the "Allow bots to post into this channel" box is NOT checked.
- Turn off channel moderation
- Try to post into that channel with the botbuilder sdk
client.conversations.sendToConversation()
- Receive the "User blocked conversation with the bot." error.
- Turn on channel moderation and tick that box, turn channel moderation back off
- Post again -> no error.
Expected behavior
The expected behaviour would be that channel moderation settings are only evaluated when channel moderation is on.