mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
Do not set autodelete timer on special chat IDs
This commit is contained in:
@@ -2597,6 +2597,8 @@ pub(crate) fn inner_set_autodelete_timer(
|
||||
chat_id: ChatId,
|
||||
timer: u32,
|
||||
) -> Result<(), Error> {
|
||||
ensure!(!chat_id.is_special(), "Invalid chat ID");
|
||||
|
||||
context.sql.execute(
|
||||
"UPDATE chats
|
||||
SET autodelete_timer=?
|
||||
|
||||
Reference in New Issue
Block a user