mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Do not delete messages from special chats
This commit is contained in:
@@ -2522,8 +2522,9 @@ pub fn delete_device_expired_messages(context: &Context) -> sql::Result<()> {
|
|||||||
context.sql.execute(
|
context.sql.execute(
|
||||||
"UPDATE msgs \
|
"UPDATE msgs \
|
||||||
SET txt = '', hidden = 1 \
|
SET txt = '', hidden = 1 \
|
||||||
WHERE timestamp < ?",
|
WHERE timestamp < ? \
|
||||||
params![threshold_timestamp],
|
AND chat_id > ?",
|
||||||
|
params![threshold_timestamp, DC_CHAT_ID_LAST_SPECIAL],
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user