Use new helper method to redact command

This commit is contained in:
Tulir Asokan
2022-05-10 17:27:03 +03:00
parent 72360457ef
commit d9018868a1
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -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,