ephemeral: clear more fields in delete_expired_messages

These fields are cleared in other places,
but in the case of delete_device_after setting
only txt column was cleared previously.
This commit is contained in:
link2xt
2022-04-02 17:08:15 +00:00
parent 6392300311
commit 332892b468
2 changed files with 3 additions and 1 deletions

View File

@@ -378,7 +378,8 @@ WHERE
.sql
.execute(
"UPDATE msgs \
SET txt = 'DELETED', chat_id = ? \
SET chat_id = ?, txt = '', subject='', txt_raw='', \
mime_headers='', from_id=0, to_id=0, param='' \
WHERE timestamp < ? \
AND chat_id > ? \
AND chat_id != ? \