fix(controllers): check if the cached content is same as the updated content (#426)

This commit is contained in:
ITOH
2021-01-20 18:52:47 +01:00
committed by GitHub
parent 251256d1ae
commit fb409b71b6

View File

@@ -97,7 +97,7 @@ export async function handleInternalMessageUpdate(data: DiscordPayload) {
// Messages with embeds can trigger update but they wont have edited_timestamp
if (
!payload.edited_timestamp ||
(cachedMessage.content !== payload.content)
(cachedMessage.content === payload.content)
) {
return;
}