Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ async def create_conversation(
If the conversation is established with the specified users, the ID of the activity
will contain the ID of the new conversation.
"""

try:
if not service_url:
service_url = reference.service_url
Expand All @@ -366,8 +367,10 @@ async def create_conversation(
# Mix in the tenant ID if specified. This is required for MS Teams.
if reference.conversation and reference.conversation.tenant_id:
# Putting tenant_id in channel_data is a temporary while we wait for the Teams API to be updated
parameters.channel_data = {
"tenant": {"tenantId": reference.conversation.tenant_id}
if parameters.channel_data is None:
parameters.channel_data = {}
parameters.channel_data["tenant"] = {
"tenantId": reference.conversation.tenant_id
}

# Permanent solution is to put tenant_id in parameters.tenant_id
Expand Down