mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 18:15:28 +00:00
fix: null assertion has a chance of throwing error here
This commit is contained in:
@@ -117,7 +117,11 @@ const Message = observer(
|
|||||||
}
|
}
|
||||||
contrast={contrast}
|
contrast={contrast}
|
||||||
sending={typeof queued !== "undefined"}
|
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"}
|
failed={typeof queued?.error !== "undefined"}
|
||||||
{...(attachContext
|
{...(attachContext
|
||||||
? useTriggerEvents("Menu", {
|
? useTriggerEvents("Menu", {
|
||||||
|
|||||||
Reference in New Issue
Block a user