1 parent f763477 commit 76077c3Copy full SHA for 76077c3
1 file changed
libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/agent_notification.py
@@ -61,10 +61,8 @@ def on_agent_notification(
61
62
def route_selector(context: TurnContext) -> bool:
63
ch = context.activity.channel_id
64
- received_channel = ch.channel if ch else ""
65
- received_subchannel = ch.sub_channel if ch else ""
66
- received_channel = received_channel.lower()
67
- received_subchannel = received_subchannel.lower()
+ received_channel = (ch.channel if ch else "").lower()
+ received_subchannel = (ch.sub_channel if ch and ch.sub_channel else "").lower()
68
if received_channel != registered_channel:
69
return False
70
if registered_subchannel == "*":
0 commit comments