8000 cleaning up activity handler and models · ericmicrofocus/botbuilder-python@9ed8110 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ed8110

Browse files
committed
cleaning up activity handler and models
1 parent 99ce4ea commit 9ed8110

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libraries/botbuilder-core/botbuilder/core/teams/teams_activity_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,15 @@ async def on_conversation_update_activity(self, turn_context: TurnContext):
285285
)
286286

287287
if channel_data:
288-
if channel_data.eventType == "channelCreated":
288+
if channel_data.event_type == "channelCreated":
289289
return await self.on_teams_channel_created_activity(
290290
ChannelInfo(**channel_data.channel), channel_data.team, turn_context
291291
)
292-
if channel_data.eventType == "channelDeleted":
292+
if channel_data.event_type == "channelDeleted":
293293
return await self.on_teams_channel_deleted_activity(
294294
channel_data.channel, channel_data.team, turn_context
295295
)
296-
if channel_data.eventType == "channelRenamed":
296+
if channel_data.event_type == "channelRenamed":
297297
return await self.on_teams_channel_renamed_activity(
298298
channel_data.channel, channel_data.team, turn_context
299299
)

libraries/botbuilder-schema/botbuilder/schema/_models_py3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,14 +730,14 @@ def __init__(
730730
*,
731731
id: str = None,
732732
name: str = None,
733-
aadObjectId: str = None,
733+
aad_object_id: str = None,
734734
role=None,
735735
**kwargs
736736
) -> None:
737737
super(ChannelAccount, self).__init__(**kwargs)
738738
self.id = id
739739
self.name = name
740-
self.aad_object_id = aadObjectId
740+
self.aad_object_id = aad_object_id
741741
self.role = role
742742

743743

0 commit comments

Comments
 (0)
0