mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user