From 4daa57c98e5d7fc3835554c45e5565658d798ce5 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sat, 28 Mar 2020 16:22:59 +0300 Subject: [PATCH] delete_device_expired_messages: set text to DELETED for hidden messages This makes debugging easier: DELETED messages should never be shown. --- src/chat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat.rs b/src/chat.rs index 6adca60b9..f219e47d8 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -2521,7 +2521,7 @@ pub fn delete_device_expired_messages(context: &Context) -> sql::Result<()> { // Hide expired messages context.sql.execute( "UPDATE msgs \ - SET txt = '', hidden = 1 \ + SET txt = 'DELETED', hidden = 1 \ WHERE timestamp < ? \ AND chat_id > ?", params![threshold_timestamp, DC_CHAT_ID_LAST_SPECIAL],