summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-03-16 13:04:07 +0000
committerErik Johnston <erik@matrix.org>2017-03-16 13:04:07 +0000
commitda146657c9a8685eb927cd295891332af86ba15d (patch)
treec66ca7b4f6ad2bdcc22d017d72bbdf1145d1147d /synapse/storage
parentComment (diff)
downloadsynapse-da146657c9a8685eb927cd295891332af86ba15d.tar.xz
Comments
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/roommember.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 5f044a3f18..e38d8927bf 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -276,6 +276,8 @@ class RoomMemberStore(SQLBaseStore):
 
     @cachedInlineCallbacks(max_entries=500000, iterable=True)
     def get_rooms_for_user(self, user_id):
+        """Returns a set of room_ids the user is currently joined to
+        """
         rooms = yield self.get_rooms_for_user_where_membership_is(
             user_id, membership_list=[Membership.JOIN],
         )