mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 10:22:30 +01:00
fix role mentions
This commit is contained in:
parent
cdea3bea19
commit
6f058c118b
@ -32,7 +32,7 @@ function Message({ message, header }: Props) {
|
||||
const isRoleMentioned =
|
||||
guild &&
|
||||
"mention_roles" in message &&
|
||||
message.mention_roles.some((role) => guild.members.me?.roles.some((role) => role.id === role.id));
|
||||
message.mention_roles.some((r1) => guild.members.me?.roles.some((r2) => r1.id === r2.id));
|
||||
|
||||
return (
|
||||
<MessageBase
|
||||
|
Loading…
Reference in New Issue
Block a user