From 0be1b44642836b12584bfddffe1faa7a88e866c8 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Thu, 18 Nov 2021 14:16:39 +0200 Subject: [PATCH] fix mistake in sql query --- VERSION | 2 +- protocol/message_persistence.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 8f63f4f9a..2bba10fde 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.91.0 +0.91.1 diff --git a/protocol/message_persistence.go b/protocol/message_persistence.go index 2763f2826..a9a033f1f 100644 --- a/protocol/message_persistence.go +++ b/protocol/message_persistence.go @@ -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 }