mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 11:26:29 +03:00
Delete hidden expired messages
The condition remains from the time when expired messages were hidden instead of being moved into trash chat. As a result, old hidden messages, such as location messages, were not deleted.
This commit is contained in:
committed by
link2xt
parent
759ccdbee2
commit
3e2bfc35e3
@@ -1612,8 +1612,7 @@ pub fn delete_device_expired_messages(context: &Context) -> Result<bool, Error>
|
||||
WHERE timestamp < ? \
|
||||
AND chat_id > ? \
|
||||
AND chat_id != ? \
|
||||
AND chat_id != ? \
|
||||
AND NOT hidden",
|
||||
AND chat_id != ?",
|
||||
params![
|
||||
DC_CHAT_ID_TRASH,
|
||||
threshold_timestamp,
|
||||
|
||||
Reference in New Issue
Block a user