File tree 2 files changed +12
-1
lines changed
libraries/botbuilder-core
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ def teams_notify_user(
71
71
activity .channel_data = {}
72
72
73
73
channel_data = TeamsChannelData ().deserialize (activity .channel_data )
74
- channel_data .notification = NotificationInfo (alert = True )
74
+ channel_data .notification = NotificationInfo (alert = not alert_in_meeting )
75
75
channel_data .notification .alert_in_meeting = alert_in_meeting
76
76
channel_data .notification .external_resource_url = external_resource_url
77
77
activity .channel_data = channel_data
Original file line number Diff line number Diff line change @@ -155,6 +155,17 @@ def test_teams_notify_user(self):
155
155
# Assert
156
156
assert activity .channel_data .notification .alert
157
157
158
+ def test_teams_notify_user_alert_in_meeting (self ):
159
+ # Arrange
160
+ activity = Activity ()
161
+
162
+ # Act
163
+ teams_notify_user (activity , alert_in_meeting = True )
164
+
165
+ # Assert
166
+ assert activity .channel_data .notification .alert_in_meeting is True
167
+ assert activity .channel_data .notification .alert is False
168
+
158
169
def test_teams_notify_user_with_no_activity (self ):
159
170
# Arrange
160
171
activity = None
You can’t perform that action at this time.
0 commit comments