Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

widget API(ffi): Add StateEventType::RoomEncryption to capabilities #3506

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bindings/matrix-sdk-ffi/src/widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,16 @@ pub fn get_element_call_required_permissions(own_user_id: String) -> WidgetCapab

WidgetCapabilities {
read: vec![
// TODO: we really should not have this permission in here, since it is not used
// anymore. The only reason `org.matrix.msc3401.call` is still here is to
// not break current EC deployments. (EC still expects to get this
// permission even though its not using it.) https://github.com/element-hq/element-call/pull/2399 needs to be merged and deployed
WidgetEventFilter::StateWithType { event_type: "org.matrix.msc3401.call".to_owned() },
WidgetEventFilter::StateWithType { event_type: StateEventType::CallMember.to_string() },
WidgetEventFilter::StateWithType { event_type: StateEventType::RoomMember.to_string() },
WidgetEventFilter::StateWithType {
event_type: StateEventType::RoomEncryption.to_string(),
},
WidgetEventFilter::MessageLikeWithType {
event_type: "org.matrix.rageshake_request".to_owned(),
},
Expand Down
Loading