From 6cc98ee9f7e0a339f95d60edec274aafb4e80256 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 25 Jun 2025 16:12:06 -0400 Subject: [PATCH] feat(widget): Allow Element Call to learn the room name The latest mobile designs for Element Call have it displaying the room name in an "app bar". So the Element Call widget will soon start requesting the capability to learn the room name, and the SDK should auto-approve this capability. --- bindings/matrix-sdk-ffi/src/widget.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/matrix-sdk-ffi/src/widget.rs b/bindings/matrix-sdk-ffi/src/widget.rs index 48ec4ca66..9c27c61bf 100644 --- a/bindings/matrix-sdk-ffi/src/widget.rs +++ b/bindings/matrix-sdk-ffi/src/widget.rs @@ -181,6 +181,8 @@ pub fn get_element_call_required_permissions( read: vec![ // To compute the current state of the matrixRTC session. WidgetEventFilter::StateWithType { event_type: StateEventType::CallMember.to_string() }, + // To display the name of the room. + WidgetEventFilter::StateWithType { event_type: StateEventType::RoomName.to_string() }, // To detect leaving/kicked room members during a call. WidgetEventFilter::StateWithType { event_type: StateEventType::RoomMember.to_string() }, // To decide whether to encrypt the call streams based on the room encryption setting. @@ -483,6 +485,7 @@ mod tests { cap_assert("org.matrix.msc4157.update_delayed_event"); cap_assert("org.matrix.msc4157.send.delayed_event"); cap_assert("org.matrix.msc2762.receive.state_event:org.matrix.msc3401.call.member"); + cap_assert("org.matrix.msc2762.receive.state_event:m.room.name"); cap_assert("org.matrix.msc2762.receive.state_event:m.room.member"); cap_assert("org.matrix.msc2762.receive.state_event:m.room.encryption"); cap_assert("org.matrix.msc2762.receive.event:org.matrix.rageshake_request");