Skip to content

Commit

Permalink
Fix bug related to channelId (microsoft#3833)
Browse files Browse the repository at this point in the history
Fixing a bug that used to pass teamsChannelId instead of chanelId when calling CreateConversationAsync
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

rm3f authored Oct 17, 2022
1 parent b750e9e commit b578bbe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -158,7 +158,7 @@ private async Task DeleteCardActivityAsync(ITurnContext<IMessageActivity> turnCo

private async Task MessageAllMembersAsync(ITurnContext<IMessageActivity> turnContext, CancellationToken cancellationToken)
{
var teamsChannelId = turnContext.Activity.TeamsGetChannelId();
var channelId = turnContext.Activity.ChannelId;
var serviceUrl = turnContext.Activity.ServiceUrl;
var credentials = new MicrosoftAppCredentials(_appId, _appPassword);
ConversationReference conversationReference = null;
@@ -179,7 +179,7 @@ private async Task MessageAllMembersAsync(ITurnContext<IMessageActivity> turnCon

await ((CloudAdapter)turnContext.Adapter).CreateConversationAsync(
credentials.MicrosoftAppId,
teamsChannelId,
channelId,
serviceUrl,
credentials.OAuthScope,
conversationParameters,

0 comments on commit b578bbe

Please sign in to comment.