MessageLogger: fix potential error

This commit is contained in:
Vendicated 2024-06-08 04:15:29 +02:00
parent 239da032ec
commit 2c5079b49f
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
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 (