diff --git a/protocol/message_persistence.go b/protocol/message_persistence.go index 38fb96cba..0e2441c03 100644 --- a/protocol/message_persistence.go +++ b/protocol/message_persistence.go @@ -592,7 +592,7 @@ func (db sqlitePersistence) MessageByChatID(chatID string, currCursor string, li // This new column values can also be returned as a cursor for subsequent requests. where := fmt.Sprintf(` WHERE - NOT(m1.hide) AND m1.local_chat_id = ? %s AND NOT(m1.deleted) + NOT(m1.hide) AND m1.local_chat_id = ? %s ORDER BY cursor DESC LIMIT ?`, cursorWhere)