Fix batching in getUnreadReactionsAndMarkRead

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2021-12-20 07:40:34 -08:00 committed by GitHub
parent 2eab52dd0d
commit 0f6383c91b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2181,7 +2181,7 @@ async function getUnreadReactionsAndMarkRead({
UPDATE reactions SET
unread = 0 WHERE rowid IN ( ${ids.map(() => '?').join(', ')} );
`
).run(idsToUpdate);
).run(ids);
});
return unreadMessages;