Skip to content

Commit 8e19a5e

Browse files
committed
change(notification_client): request the org.matrix.msc3401.call.member state events resolving notification payloads
- this will be used to check whether a room still has an active call (`has_active_room_call`) before showing the ringing screen
1 parent ef4cb79 commit 8e19a5e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

crates/matrix-sdk-ui/src/notification_client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ impl NotificationClient {
411411
(StateEventType::RoomCanonicalAlias, "".to_owned()),
412412
(StateEventType::RoomName, "".to_owned()),
413413
(StateEventType::RoomPowerLevels, "".to_owned()),
414+
(StateEventType::CallMember, "*".to_owned()),
414415
];
415416

416417
let invites = SlidingSyncList::builder("invites")

crates/matrix-sdk-ui/tests/integration/notification_client.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ async fn test_notification_client_sliding_sync() {
264264
["m.room.canonical_alias", ""],
265265
["m.room.name", ""],
266266
["m.room.power_levels", ""],
267+
["org.matrix.msc3401.call.member", "*"],
267268
],
268269
"filters": {
269270
"is_invite": true,
@@ -281,6 +282,7 @@ async fn test_notification_client_sliding_sync() {
281282
["m.room.canonical_alias", ""],
282283
["m.room.name", ""],
283284
["m.room.power_levels", ""],
285+
["org.matrix.msc3401.call.member", "*"],
284286
],
285287
"timeline_limit": 16,
286288
},

0 commit comments

Comments
 (0)