summary refs log tree commit diff
path: root/synapse/storage/databases/main/roommember.py
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2021-09-10 10:54:38 +0100
committerGitHub <noreply@github.com>2021-09-10 10:54:38 +0100
commit318162f5debc595d3381337fe363fa7936cc7843 (patch)
tree2a6451443ea2e9ecd6fe8ff973ab202abe48b42e /synapse/storage/databases/main/roommember.py
parentRemove fixed and flakey tests from the sytest blacklist (#10788) (diff)
downloadsynapse-318162f5debc595d3381337fe363fa7936cc7843.tar.xz
Easy refactors of the user directory (#10789)
No functional changes here. This came out as I was working to tackle #5677 
Diffstat (limited to 'synapse/storage/databases/main/roommember.py')
-rw-r--r--synapse/storage/databases/main/roommember.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/roommember.py b/synapse/storage/databases/main/roommember.py
index c58a4b8690..64c18c6f86 100644
--- a/synapse/storage/databases/main/roommember.py
+++ b/synapse/storage/databases/main/roommember.py
@@ -196,6 +196,11 @@ class RoomMemberWorkerStore(EventsWorkerStore):
     ) -> Dict[str, ProfileInfo]:
         """Get a mapping from user ID to profile information for all users in a given room.
 
+        The profile information comes directly from this room's `m.room.member`
+        events, and so may be specific to this room rather than part of a user's
+        global profile. To avoid privacy leaks, the profile data should only be
+        revealed to users who are already in this room.
+
         Args:
             room_id: The ID of the room to retrieve the users of.