fix: do not filter out deleted messages in MessageByChatID (#3008)

This commit is contained in:
yqrashawn 2022-12-08 18:13:56 +08:00 committed by GitHub
parent d7bf19fdbb
commit 49b3c573f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)