Use new helper method to redact command
This commit is contained in:
@@ -378,10 +378,7 @@ async def enter_password(evt: CommandEvent) -> EventID | None:
|
|||||||
"This bridge instance does not allow in-Matrix login. "
|
"This bridge instance does not allow in-Matrix login. "
|
||||||
"Please use `$cmdprefix+sp login` to get login instructions"
|
"Please use `$cmdprefix+sp login` to get login instructions"
|
||||||
)
|
)
|
||||||
try:
|
await evt.redact()
|
||||||
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}")
|
|
||||||
try:
|
try:
|
||||||
await _sign_in(
|
await _sign_in(
|
||||||
evt,
|
evt,
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ python-magic>=0.4,<0.5
|
|||||||
commonmark>=0.8,<0.10
|
commonmark>=0.8,<0.10
|
||||||
aiohttp>=3,<4
|
aiohttp>=3,<4
|
||||||
yarl>=1,<2
|
yarl>=1,<2
|
||||||
mautrix>=0.16.0,<0.17
|
mautrix>=0.16.4,<0.17
|
||||||
#telethon>=1.24,<1.25
|
#telethon>=1.24,<1.25
|
||||||
# Fork to make session storage async and update to layer 138
|
# Fork to make session storage async and update to layer 138
|
||||||
tulir-telethon==1.25.0a7
|
tulir-telethon==1.25.0a7
|
||||||
|
|||||||
Reference in New Issue
Block a user