Fix forgetting already left room
This commit is contained in:
parent
7db0e07281
commit
fb84ea41c5
|
@ -1180,8 +1180,9 @@ class MatrixClient(nio.AsyncClient):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await super().room_leave(room_id)
|
await super().room_leave(room_id)
|
||||||
except MatrixNotFound: # already left
|
except MatrixError as e: # room was already left
|
||||||
pass
|
if e.http_code != 404:
|
||||||
|
raise
|
||||||
|
|
||||||
await super().room_forget(room_id)
|
await super().room_forget(room_id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user