@@ -220,13 +220,21 @@ pub fn get_element_call_required_permissions(
220
220
event_type: StateEventType :: CallMember . to_string( ) ,
221
221
state_key: format!( "{own_user_id}_{own_device_id}" ) ,
222
222
} ,
223
+ WidgetEventFilter :: StateWithTypeAndStateKey {
224
+ event_type: StateEventType :: CallMember . to_string( ) ,
225
+ state_key: format!( "{own_user_id}_{own_device_id}_m.call" ) ,
226
+ } ,
223
227
// The same as above but with an underscore.
224
228
// To work around the issue that state events starting with `@` have to be Matrix id's
225
229
// but we use mxId+deviceId.
226
230
WidgetEventFilter :: StateWithTypeAndStateKey {
227
231
event_type: StateEventType :: CallMember . to_string( ) ,
228
232
state_key: format!( "_{own_user_id}_{own_device_id}" ) ,
229
233
} ,
234
+ WidgetEventFilter :: StateWithTypeAndStateKey {
235
+ event_type: StateEventType :: CallMember . to_string( ) ,
236
+ state_key: format!( "_{own_user_id}_{own_device_id}_m.call" ) ,
237
+ } ,
230
238
]
231
239
. into_iter ( )
232
240
. chain ( read_send)
@@ -506,9 +514,15 @@ mod tests {
506
514
cap_assert (
507
515
"org.matrix.msc2762.send.state_event:org.matrix.msc3401.call.member#@my_user:my_domain.org_ABCDEFGHI" ,
508
516
) ;
517
+ cap_assert (
518
+ "org.matrix.msc2762.send.state_event:org.matrix.msc3401.call.member#@my_user:my_domain.org_ABCDEFGHI_m.call" ,
519
+ ) ;
509
520
cap_assert (
510
521
"org.matrix.msc2762.send.state_event:org.matrix.msc3401.call.member#_@my_user:my_domain.org_ABCDEFGHI" ,
511
522
) ;
523
+ cap_assert (
524
+ "org.matrix.msc2762.send.state_event:org.matrix.msc3401.call.member#_@my_user:my_domain.org_ABCDEFGHI_m.call" ,
525
+ ) ;
512
526
cap_assert ( "org.matrix.msc2762.send.event:org.matrix.rageshake_request" ) ;
513
527
cap_assert ( "org.matrix.msc2762.send.event:io.element.call.encryption_keys" ) ;
514
528
}
0 commit comments