Handle multiple out of order reactions

This commit is contained in:
Ken Powers 2020-03-20 15:07:44 -04:00 committed by Scott Nonnenberg
parent 37ad95af27
commit 42152be4af
2 changed files with 20 additions and 16 deletions

View file

@ -2401,11 +2401,11 @@
await conversation.notify(message);
}
// Does this message have a pending, previously-received associated reaction?
const reaction = Whisper.Reactions.forMessage(message);
if (reaction) {
// Does this message have any pending, previously-received associated reactions?
const reactions = Whisper.Reactions.forMessage(message);
reactions.forEach(reaction => {
message.handleReaction(reaction);
}
});
Whisper.events.trigger('incrementProgress');
confirm();