Update account unread count when forgetting room
This commit is contained in:
parent
43ed7b2eb9
commit
43468c25e3
|
@ -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, "events"), None)
|
||||||
self.models.pop((self.user_id, room_id, "members"), None)
|
self.models.pop((self.user_id, room_id, "members"), None)
|
||||||
|
|
||||||
|
await self.update_account_unread_counts()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await super().room_leave(room_id)
|
await super().room_leave(room_id)
|
||||||
except MatrixNotFound: # already left
|
except MatrixNotFound: # already left
|
||||||
|
|
Loading…
Reference in New Issue
Block a user