From d9018868a1a20063c7cd0deec0d31f7731e61434 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 10 May 2022 17:27:03 +0300 Subject: [PATCH] Use new helper method to redact command --- mautrix_telegram/commands/telegram/auth.py | 5 +---- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/mautrix_telegram/commands/telegram/auth.py b/mautrix_telegram/commands/telegram/auth.py index b014d5f2..d8cd93fd 100644 --- a/mautrix_telegram/commands/telegram/auth.py +++ b/mautrix_telegram/commands/telegram/auth.py @@ -378,10 +378,7 @@ async def enter_password(evt: CommandEvent) -> EventID | None: "This bridge instance does not allow in-Matrix login. " "Please use `$cmdprefix+sp login` to get login instructions" ) - try: - await evt.az.intent.redact(evt.room_id, evt.event_id) - except MForbidden as e: - evt.log.warning(f"Failed to redact password command: {e}") + await evt.redact() try: await _sign_in( evt, diff --git a/requirements.txt b/requirements.txt index 1fe6e98a..3f86111b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ python-magic>=0.4,<0.5 commonmark>=0.8,<0.10 aiohttp>=3,<4 yarl>=1,<2 -mautrix>=0.16.0,<0.17 +mautrix>=0.16.4,<0.17 #telethon>=1.24,<1.25 # Fork to make session storage async and update to layer 138 tulir-telethon==1.25.0a7