File tree 3 files changed +7
-4
lines changed 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -303,10 +303,12 @@ def __populate_additional_channel_properties(
303
303
properties : dict ,
304
304
):
305
305
if activity .channel_id == Channels .ms_teams :
306
- teams_channel_data : TeamsChannelData = activity .channel_data
306
+ teams_channel_data : TeamsChannelData = TeamsChannelData ().deserialize (
307
+ activity .channel_data
308
+ )
307
309
308
310
properties ["TeamsTenantId" ] = (
309
- teams_channel_data .tenant
311
+ teams_channel_data .tenant . id
310
312
if teams_channel_data and teams_channel_data .tenant
311
313
else ""
312
314
)
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ async def test_log_teams(self):
251
251
channel_data = TeamsChannelData (
252
252
team = team_info ,
253
253
tenant = TenantInfo (id = "tenantId" ),
254
- )
254
+ ). serialize ()
255
255
256
256
activity = MessageFactory .text ("test" )
257
257
activity .channel_data = channel_data
@@ -272,7 +272,7 @@ async def test_log_teams(self):
272
272
"fromId" : "userId" ,
273
273
"recipientId" : "bot" ,
274
274
"recipientName" : "Bot" ,
275
- "TeamsTenantId" : TenantInfo ( id = "tenantId" ) ,
275
+ "TeamsTenantId" : "tenantId" ,
276
276
"TeamsUserAadObjectId" : "aaId" ,
277
277
"TeamsTeamInfo" : TeamInfo .serialize (team_info ),
278
278
},
Original file line number Diff line number Diff line change 6
6
7
7
REQUIRES = [
8
8
"regex<=2019.08.19" ,
9
+ "emoji==1.7.0" ,
9
10
"recognizers-text-date-time>=1.0.2a1" ,
10
11
"recognizers-text-number-with-unit>=1.0.2a1" ,
11
12
"recognizers-text-number>=1.0.2a1" ,
You can’t perform that action at this time.
0 commit comments