Update read sync handling for reacted messages

This commit is contained in:
trevor-signal 2023-09-28 18:05:24 -04:00 committed by GitHub
parent bae73e180a
commit 17b0c0548d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,11 +42,22 @@ async function maybeItIsAReactionReadSync(
Number(sync.timestamp)
);
if (!readReaction) {
if (
!readReaction ||
readReaction?.targetAuthorAci !== window.storage.user.getCheckedAci()
) {
log.info(`${logId} not found:`, sync.senderId, sync.sender, sync.senderAci);
return;
}
log.info(
`${logId} read reaction sync found:`,
readReaction.conversationId,
sync.senderId,
sync.sender,
sync.senderAci
);
remove(sync);
notificationService.removeBy({