From 3e2bfc35e3e4ea26c450c6a7771918703788f7eb Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Fri, 15 May 2020 03:53:35 +0300 Subject: [PATCH] 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. --- src/chat.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index c9a65538c..5c409dbbe 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -1612,8 +1612,7 @@ pub fn delete_device_expired_messages(context: &Context) -> Result WHERE timestamp < ? \ AND chat_id > ? \ AND chat_id != ? \ - AND chat_id != ? \ - AND NOT hidden", + AND chat_id != ?", params![ DC_CHAT_ID_TRASH, threshold_timestamp,