Drop reaction messages

This commit is contained in:
Ken Powers 2019-12-16 12:45:57 -05:00 committed by Scott Nonnenberg
parent 2da39cca67
commit a83f5ce3e0
2 changed files with 18 additions and 1 deletions

View file

@ -1837,6 +1837,13 @@
`Starting handleDataMessage for message ${message.idForLogging()} in conversation ${conversation.idForLogging()}`
);
// Drop reaction messages at this time
if (initialMessage.reaction) {
window.log.info('Dropping reaction message', this.idForLogging());
confirm();
return;
}
// First, check for duplicates. If we find one, stop processing here.
const existingMessage = await getMessageBySender(this.attributes, {
Message: Whisper.Message,