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