-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrected GetConversationMembers to use TeamsInfo helper class rather… #5874
Conversation
… than rely on BotFrameworkAdapter directly.
Pull Request Test Coverage Report for Build 266877
💛 - Coveralls |
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Actions/GetConversationMembers.cs
Outdated
Show resolved
Hide resolved
… they were before.
@@ -95,5 +93,21 @@ protected override string OnComputeId() | |||
{ | |||
return $"{GetType().Name}[{this.Property?.ToString() ?? string.Empty}]"; | |||
} | |||
|
|||
private static async Task<IEnumerable<ChannelAccount>> GetMembersAsync(IConnectorClient connectorClient, string conversationId, CancellationToken cancellationToken) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I've pushed a change to simplify this area of the code. Thanks for the suggestion.
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Actions/GetActivityMembers.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
… than rely on BotFrameworkAdapter directly.
Fixes #5873
Description
Corrected GetConversationMembers in Adaptive.Runtime to use TeamsInfo helper class rather than rely on BotFrameworkAdapter functions that aren't available now that CoreBotAdapter derives from CloudAdapter and not BotFrameworkAdapter
Specific Changes
Remove check for BotFrameworkAdapter and call to it for GetConversationMembersAsync and now use TeamsInfo and call GetMembersAsync.
Testing
Tested against a Composer created bot using the updated SDK to make sure all the changes were correct.