diff options
author | Erik Johnston <erik@matrix.org> | 2017-03-16 13:04:07 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-03-16 13:04:07 +0000 |
commit | da146657c9a8685eb927cd295891332af86ba15d (patch) | |
tree | c66ca7b4f6ad2bdcc22d017d72bbdf1145d1147d /synapse/storage/roommember.py | |
parent | Comment (diff) | |
download | synapse-da146657c9a8685eb927cd295891332af86ba15d.tar.xz |
Comments
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/roommember.py | 2 |
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], ) |