diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-05-17 10:43:19 +0100 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-05-17 10:43:19 +0100 |
commit | 1ed33784a6a7a7fb59ba96edf78df3367cff5a44 (patch) | |
tree | 71b6969dc6785e03e20eaca7d771bde7ece1eab2 /synapse/storage/roommember.py | |
parent | Merge pull request #787 from matrix-org/markjh/liberate_presence_handler (diff) | |
parent | Remove unused get_joined_rooms_for_user (diff) | |
download | synapse-1ed33784a6a7a7fb59ba96edf78df3367cff5a44.tar.xz |
Merge pull request #789 from matrix-org/markjh/member_cleanup
Cleanup room member handler
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r-- | synapse/storage/roommember.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index 223258785d..face685ed2 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -137,24 +137,6 @@ class RoomMemberStore(SQLBaseStore): return [r["user_id"] for r in rows] return self.runInteraction("get_users_in_room", f) - def get_room_members(self, room_id, membership=None): - """Retrieve the current room member list for a room. - - Args: - room_id (str): The room to get the list of members. - membership (synapse.api.constants.Membership): The filter to apply - to this list, or None to return all members with some state - associated with this room. - Returns: - list of namedtuples representing the members in this room. - """ - return self.runInteraction( - "get_room_members", - self._get_members_events_txn, - room_id, - membership=membership, - ).addCallback(self._get_events) - @cached() def get_invited_rooms_for_user(self, user_id): """ Get all the rooms the user is invited to |