Do not set autodelete timer on special chat IDs

This commit is contained in:
Alexander Krotov
2020-02-15 01:42:44 +03:00
parent 42d8502531
commit b54c2a3196

View File

@@ -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=?