Cleanup: Reactions, Delete for Everyone

This commit is contained in:
Scott Nonnenberg 2020-11-02 14:49:07 -08:00 committed by GitHub
parent e8759fc81b
commit 29eaa7b9a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 27 deletions

View file

@ -45,6 +45,8 @@
},
async onReaction(reaction) {
try {
// The conversation the target message was in; we have to find it in the database
// to to figure that out.
const targetConversation = await ConversationController.getConversationForTargetMessage(
ConversationController.ensureContactIds({
e164: reaction.get('targetAuthorE164'),
@ -54,7 +56,7 @@
);
if (!targetConversation) {
window.log.info(
'No contact for reaction',
'No target conversation for reaction',
reaction.get('targetAuthorE164'),
reaction.get('targetAuthorUuid'),
reaction.get('targetTimestamp')