mirror of
https://github.com/paul-nameless/tg
synced 2025-02-16 18:48:24 +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(
|
def update_delete_messages(
|
||||||
controller: Controller, update: Dict[str, Any]
|
controller: Controller, update: Dict[str, Any]
|
||||||
) -> None:
|
) -> None:
|
||||||
|
if not update["is_permanent"]:
|
||||||
|
log.debug("Ignoring deletiong becuase not permanent: %s", update)
|
||||||
|
return
|
||||||
chat_id = update["chat_id"]
|
chat_id = update["chat_id"]
|
||||||
msg_ids = update["message_ids"]
|
msg_ids = update["message_ids"]
|
||||||
controller.model.msgs.remove_messages(chat_id, msg_ids)
|
controller.model.msgs.remove_messages(chat_id, msg_ids)
|
||||||
|
|
Loading…
Add table
Reference in a new issue