mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +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 < ? \
|
WHERE timestamp < ? \
|
||||||
AND chat_id > ? \
|
AND chat_id > ? \
|
||||||
AND chat_id != ? \
|
AND chat_id != ? \
|
||||||
AND chat_id != ? \
|
AND chat_id != ?",
|
||||||
AND NOT hidden",
|
|
||||||
params![
|
params![
|
||||||
DC_CHAT_ID_TRASH,
|
DC_CHAT_ID_TRASH,
|
||||||
threshold_timestamp,
|
threshold_timestamp,
|
||||||
|
|||||||
Reference in New Issue
Block a user