diff --git a/src/backend/matrix_client.py b/src/backend/matrix_client.py index 53702e11..df810c38 100644 --- a/src/backend/matrix_client.py +++ b/src/backend/matrix_client.py @@ -909,6 +909,8 @@ class MatrixClient(nio.AsyncClient): self.models.pop((self.user_id, room_id, "events"), None) self.models.pop((self.user_id, room_id, "members"), None) + await self.update_account_unread_counts() + try: await super().room_leave(room_id) except MatrixNotFound: # already left