mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +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,
|
chat_id: ChatId,
|
||||||
timer: u32,
|
timer: u32,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
|
ensure!(!chat_id.is_special(), "Invalid chat ID");
|
||||||
|
|
||||||
context.sql.execute(
|
context.sql.execute(
|
||||||
"UPDATE chats
|
"UPDATE chats
|
||||||
SET autodelete_timer=?
|
SET autodelete_timer=?
|
||||||
|
|||||||
Reference in New Issue
Block a user