8000 Teams tenantId correction (#959) · Santhosh0505/botbuilder-python@9fed14f · GitHub
[go: up one dir, main page]

Skip to content

Commit 9fed14f

Browse files
authored
Teams tenantId correction (microsoft#959)
1 parent 4e48c87 commit 9fed14f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ async def create_conversation(
351351
if reference.conversation and reference.conversation.tenant_id:
352352
# Putting tenant_id in channel_data is a temporary while we wait for the Teams API to be updated
353353
parameters.channel_data = {
354-
"tenant": {"id": reference.conversation.tenant_id}
354+
"tenant": {"tenantId": reference.conversation.tenant_id}
355355
}
356356

357357
# Permanent solution is to put tenant_id in parameters.tenant_id

libraries/botbuilder-core/tests/test_bot_framework_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ async def aux_func_assert_valid_conversation(context):
303303
"request has invalid tenant_id on conversation",
304304
)
305305
self.assertEqual(
306-
context.activity.channel_data["tenant"]["id"],
306+
context.activity.channel_data["tenant"]["tenantId"],
307307
tenant_id,
308308
"request has invalid tenant_id in channel_data",
309309
)

0 commit comments

Comments
 (0)
0