Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove unused get_joined_rooms_for_user
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Haines committed May 17, 2016
1 parent 425e6b4 commit 526bf81
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions synapse/handlers/room_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,21 +397,6 @@ def get_inviter(self, user_id, room_id):
if invite:
defer.returnValue(UserID.from_string(invite.sender))

@defer.inlineCallbacks
def get_joined_rooms_for_user(self, user):
"""Returns a list of roomids that the user has any of the given
membership states in."""

rooms = yield self.store.get_rooms_for_user(
user.to_string(),
)

# For some reason the list of events contains duplicates
# TODO(paul): work out why because I really don't think it should
room_ids = set(r.room_id for r in rooms)

defer.returnValue(room_ids)

@defer.inlineCallbacks
def do_3pid_invite(
self,
Expand Down

0 comments on commit 526bf81

Please sign in to comment.