mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 00:20:57 -05:00
fix: null assertion has a chance of throwing error here
This commit is contained in:
parent
71e689ece3
commit
b42c24295f
1 changed files with 5 additions and 1 deletions
|
@ -117,7 +117,11 @@ const Message = observer(
|
|||
}
|
||||
contrast={contrast}
|
||||
sending={typeof queued !== "undefined"}
|
||||
mention={message.mention_ids?.includes(client.user!._id)}
|
||||
mention={
|
||||
message.mention_ids && client.user
|
||||
? message.mention_ids.includes(client.user._id)
|
||||
: undefined
|
||||
}
|
||||
failed={typeof queued?.error !== "undefined"}
|
||||
{...(attachContext
|
||||
? useTriggerEvents("Menu", {
|
||||
|
|
Loading…
Reference in a new issue