From 43468c25e3e1ed4a004c2e1c81629bf017c0df19 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 5 Jun 2020 01:16:27 -0400 Subject: [PATCH] Update account unread count when forgetting room --- src/backend/matrix_client.py | 2 ++ 1 file changed, 2 insertions(+) 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