Skip to content

Commit

Permalink
feat(Room): Check if the user is allowed to do a room mention before …
Browse files Browse the repository at this point in the history
…trying to send a call notify event.
  • Loading branch information
toger5 committed Nov 15, 2024
1 parent cefd5a2 commit 116fe07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/matrix-sdk/src/room/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2975,6 +2975,10 @@ impl Room {
return Ok(());
}

if !self.can_user_trigger_room_notification(self.own_user_id()).await? {
return Ok(());
}

self.send_call_notification(
self.room_id().to_string().to_owned(),
ApplicationType::Call,
Expand Down

0 comments on commit 116fe07

Please sign in to comment.