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:
Alexander Krotov
2020-05-15 03:53:35 +03:00
committed by link2xt
parent 759ccdbee2
commit 3e2bfc35e3

View File

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