Update read sync handling for reacted messages
This commit is contained in:
parent
bae73e180a
commit
17b0c0548d
1 changed files with 12 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue