MessageLogger: fix potential error

This commit is contained in:
Vendicated 2024-06-08 04:15:29 +02:00
parent 239da032ec
commit 2c5079b49f
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -147,7 +147,7 @@ export default definePlugin({
[MessageStore],
() => MessageStore.getMessage(channelId, messageId) as MLMessage,
null,
(oldMsg, newMsg) => oldMsg.editHistory === newMsg.editHistory
(oldMsg, newMsg) => oldMsg?.editHistory === newMsg?.editHistory
);
return (