Fix getUnreadReactionsAndMarkRead

This commit is contained in:
Fedor Indutny 2021-12-21 21:01:09 +01:00 committed by GitHub
parent 327a38a552
commit f5312b9463
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 6 deletions

View file

@ -2152,7 +2152,7 @@ async function getUnreadReactionsAndMarkRead({
const unreadMessages: Array<ReactionResultType> = db
.prepare<Query>(
`
SELECT rowid, targetAuthorUuid, targetTimestamp, messageId
SELECT reactions.rowid, targetAuthorUuid, targetTimestamp, messageId
FROM reactions
JOIN messages on messages.id IS reactions.messageId
WHERE