mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Fix disappearing msgs (#132)
This commit is contained in:
parent
aeab7c1564
commit
111685170c
1 changed files with 3 additions and 0 deletions
|
@ -259,6 +259,9 @@ def update_message_content_opened(
|
|||
def update_delete_messages(
|
||||
controller: Controller, update: Dict[str, Any]
|
||||
) -> None:
|
||||
if not update["is_permanent"]:
|
||||
log.debug("Ignoring deletiong becuase not permanent: %s", update)
|
||||
return
|
||||
chat_id = update["chat_id"]
|
||||
msg_ids = update["message_ids"]
|
||||
controller.model.msgs.remove_messages(chat_id, msg_ids)
|
||||
|
|
Loading…
Reference in a new issue