summary refs log tree commit diff
path: root/synapse/storage/databases/main/roommember.py
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-08-16 12:16:56 +0000
committerGitHub <noreply@github.com>2022-08-16 13:16:56 +0100
commitc3516e9decc355b75a297d72a13b98a43d312e66 (patch)
tree54511640eeda393cc0d8725f151f350aafe6639c /synapse/storage/databases/main/roommember.py
parentMake push rules use proper structures. (#13522) (diff)
downloadsynapse-c3516e9decc355b75a297d72a13b98a43d312e66.tar.xz
Faster room joins: make `/joined_members` block whilst the room is partial stated. (#13514)
Diffstat (limited to 'synapse/storage/databases/main/roommember.py')
-rw-r--r--synapse/storage/databases/main/roommember.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/roommember.py b/synapse/storage/databases/main/roommember.py
index 93ff4816c8..5e5f607a14 100644
--- a/synapse/storage/databases/main/roommember.py
+++ b/synapse/storage/databases/main/roommember.py
@@ -283,6 +283,9 @@ class RoomMemberWorkerStore(EventsWorkerStore):
 
         Returns:
             A mapping from user ID to ProfileInfo.
+
+        Preconditions:
+          - There is full state available for the room (it is not partial-stated).
         """
 
         def _get_users_in_room_with_profiles(