Update account unread count when forgetting room

This commit is contained in:
miruka 2020-06-05 01:16:27 -04:00
parent 43ed7b2eb9
commit 43468c25e3

View File

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