Passive UUID support

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Ken Powers 2020-03-05 13:14:58 -08:00 committed by Scott Nonnenberg
parent f64ca0ed21
commit a90246cbe5
49 changed files with 2226 additions and 776 deletions

View file

@ -36,7 +36,9 @@
const found = messages.find(
item =>
item.isIncoming() && item.get('source') === receipt.get('sender')
item.isIncoming() &&
(item.get('source') === receipt.get('sender') ||
item.get('sourceUuid') === receipt.get('senderUuid'))
);
const notificationForMessage = found
? Whisper.Notifications.findWhere({ messageId: found.id })
@ -47,6 +49,7 @@
window.log.info(
'No message for read sync',
receipt.get('sender'),
receipt.get('senderUuid'),
receipt.get('timestamp')
);
return;