summary refs log tree commit diff
path: root/synapse/storage/databases/main/events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-07-11 21:08:39 +0100
committerGitHub <noreply@github.com>2022-07-11 20:08:39 +0000
commite5716b631c6fe0b0a8510f16a5bffddb6396f434 (patch)
tree50809aa2b1cb9c5620c9f8fee4f4f78c330735f5 /synapse/storage/databases/main/events.py
parentAdd a sample bash script to docs for creating multiple worker files (#13032) (diff)
downloadsynapse-e5716b631c6fe0b0a8510f16a5bffddb6396f434.tar.xz
Don't pull out the full state when calculating push actions (#13078)
Diffstat (limited to 'synapse/storage/databases/main/events.py')
-rw-r--r--synapse/storage/databases/main/events.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/events.py b/synapse/storage/databases/main/events.py
index 2ff3d21305..eb4efbb93c 100644
--- a/synapse/storage/databases/main/events.py
+++ b/synapse/storage/databases/main/events.py
@@ -1797,6 +1797,18 @@ class PersistEventsStore:
                 self.store.get_invited_rooms_for_local_user.invalidate,
                 (event.state_key,),
             )
+            txn.call_after(
+                self.store.get_local_users_in_room.invalidate,
+                (event.room_id,),
+            )
+            txn.call_after(
+                self.store.get_number_joined_users_in_room.invalidate,
+                (event.room_id,),
+            )
+            txn.call_after(
+                self.store.get_user_in_room_with_profile.invalidate,
+                (event.room_id, event.state_key),
+            )
 
             # The `_get_membership_from_event_id` is immutable, except for the
             # case where we look up an event *before* persisting it.