Skip to content
Snippets Groups Projects
Commit bfa4a7f8 authored by Mark Haines's avatar Mark Haines
Browse files

Invalidate the room_member cache if the current state events updates

parent d0fece8d
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,11 @@ class EventsStore(SQLBaseStore):
)
for s in current_state:
if s.type == EventTypes.Member:
invalidates.extend([
(self.get_rooms_for_user.invalidate, s.state_key),
(self.get_joined_hosts_for_room.invalidate, s.room_id),
])
self._simple_insert_txn(
txn,
"current_state_events",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment