Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libraries/botbuilder/src/botFrameworkAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,11 @@ export class BotFrameworkAdapter extends BotAdapter implements IUserTokenProvide
id: response.id,
isGroup: false,
conversationType: null,
tenantId: null,
tenantId: reference.conversation.tenantId,
name: null,
};
request.conversation = conversation;
request.channelData = parameters.channelData;

if (response.serviceUrl) { request.serviceUrl = response.serviceUrl; }

Expand Down
17 changes: 17 additions & 0 deletions libraries/botbuilder/tests/botFrameworkAdapter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,23 @@ describe(`BotFrameworkAdapter`, function () {
});
});

it(`should createConversation() for Teams.`, function (done) {
const adapter = new AdapterUnderTest();
adapter.createConversation(reference, (context) => {
try{
assert(context, `context not passed.`);
assert(context.activity, `context has no request.`);
assert(context.activity.conversation, `request has invalid conversation.`);
assert.strictEqual(context.activity.conversation.id, 'convo2', `request has invalid conversation.id.`);
assert.strictEqual(context.activity.conversation.tenantId, reference.conversation.tenantId, `request has invalid tenantId on conversation.`);
assert.strictEqual(context.activity.channelData.tenant.id, reference.conversation.tenantId, `request has invalid tenantId in channelData.`);
done();
} catch(err) {
done(err);
}
});
});

it(`should deliver a single activity using sendActivities().`, function (done) {
const adapter = new AdapterUnderTest();
const context = new TurnContext(adapter, incomingMessage);
Expand Down