fix: do not filter out deleted messages in MessageByChatID (#3008)
This commit is contained in:
parent
d7bf19fdbb
commit
49b3c573f6
|
@ -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.
|
// This new column values can also be returned as a cursor for subsequent requests.
|
||||||
where := fmt.Sprintf(`
|
where := fmt.Sprintf(`
|
||||||
WHERE
|
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
|
ORDER BY cursor DESC
|
||||||
LIMIT ?`, cursorWhere)
|
LIMIT ?`, cursorWhere)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue