Exception thrown when calling GetConversationMembers #5873
Labels
Area: Runtime
Adaptive Runtime
bug
Indicates an unexpected problem or an unintended behavior.
P1
Painful if we don't fix, won't block releasing
Size: S
The issue is simple and well understood, it will take a day or less to complete
Version
4.14.1
Describe the bug
GetConversationMembers in Adaptive.Runtime is throwing "GetConversationMembersAsync() only works with BotFrameworkAdapter" exception when executed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This should return the conversation members, not throw an exception.
Additional context
This occurs due to the change of the CoreBotAdapter to now derive from CloudAdapter and not BotFrameworkAdapter, which causes the check in GetConversationMembers (in Microsoft.Bot.Builder.Dialogs.Adaptive.Actions) that the Adapter is a BotFrameworkAdapter to fail and throw an exception. This code can't rely any more on the adapter being a BotFrameworkAdapter and instead should be using the helper functions in TeamsInfo to retrieve and return this information.
This was originally reported by a customer in Issue: Error when I use GetConversationMembers In MS Teams.
The text was updated successfully, but these errors were encountered: