matrix_client: leave room before forgetting it
This commit is contained in:
parent
988ab94772
commit
d6b8fae30a
2
TODO.md
2
TODO.md
|
@ -1,5 +1,3 @@
|
||||||
- ! Banner forget room popup
|
|
||||||
|
|
||||||
- Refactoring
|
- Refactoring
|
||||||
- Room header elide detection
|
- Room header elide detection
|
||||||
- Use HBox for Profile
|
- Use HBox for Profile
|
||||||
|
|
|
@ -277,6 +277,7 @@ class MatrixClient(nio.AsyncClient):
|
||||||
|
|
||||||
|
|
||||||
async def room_forget(self, room_id: str) -> None:
|
async def room_forget(self, room_id: str) -> None:
|
||||||
|
await super().room_leave(room_id)
|
||||||
await super().room_forget(room_id)
|
await super().room_forget(room_id)
|
||||||
self.models[Room, self.user_id].pop(room_id, None)
|
self.models[Room, self.user_id].pop(room_id, None)
|
||||||
self.models.pop((Event, self.user_id, room_id), None)
|
self.models.pop((Event, self.user_id, room_id), None)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user