delete_device_expired_messages: set text to DELETED for hidden messages

This makes debugging easier: DELETED messages should never be shown.
This commit is contained in:
Alexander Krotov
2020-03-28 16:22:59 +03:00
parent 7e67b2cbb3
commit 4daa57c98e

View File

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