matrix_client: leave room before forgetting it

This commit is contained in:
miruka 2019-09-09 20:58:19 -04:00
parent 988ab94772
commit d6b8fae30a
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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)