mirror of
https://github.com/chatmail/core.git
synced 2026-05-15 04:46:38 +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
|
// Hide expired messages
|
||||||
context.sql.execute(
|
context.sql.execute(
|
||||||
"UPDATE msgs \
|
"UPDATE msgs \
|
||||||
SET txt = '', hidden = 1 \
|
SET txt = 'DELETED', hidden = 1 \
|
||||||
WHERE timestamp < ? \
|
WHERE timestamp < ? \
|
||||||
AND chat_id > ?",
|
AND chat_id > ?",
|
||||||
params![threshold_timestamp, DC_CHAT_ID_LAST_SPECIAL],
|
params![threshold_timestamp, DC_CHAT_ID_LAST_SPECIAL],
|
||||||
|
|||||||
Reference in New Issue
Block a user