fix mistake in sql query

This commit is contained in:
Roman Volosovskyi 2021-11-18 14:16:39 +02:00
parent 1ffcf23f9b
commit 0be1b44642
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
0.91.0
0.91.1

View File

@ -1328,7 +1328,7 @@ func (db sqlitePersistence) MarkAllRead(chatID string, clock uint64) (int64, int
return 0, 0, err
}
mentionedResult, err := tx.Exec(`UPDATE user_messages SET seen = 1 WHERE local_chat_id = ? AND not(seen) != 1 AND clock_value <= ? AND mentioned`, chatID, clock)
mentionedResult, err := tx.Exec(`UPDATE user_messages SET seen = 1 WHERE local_chat_id = ? AND not(seen) AND clock_value <= ? AND mentioned`, chatID, clock)
if err != nil {
return 0, 0, err
}