Skip to content

Commit

Permalink
Fix bug which allowed anyone to mention @everyone
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Dec 5, 2023
1 parent b0771fe commit 5064c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/libraries/group_chat_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ impl GroupChatCore {
Success(PrepareSendMessageSuccess {
min_visible_event_index: member.min_visible_event_index(),
mentions_disabled: false,
everyone_mentioned: is_everyone_mentioned(content),
everyone_mentioned: member.role.can_mention_everyone(permissions) && is_everyone_mentioned(content),
})
}

Expand Down

0 comments on commit 5064c76

Please sign in to comment.