Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
Commits
526bf812
Commit
526bf812
authored
8 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused get_joined_rooms_for_user
parent
425e6b49
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/handlers/room_member.py
+0
-15
0 additions, 15 deletions
synapse/handlers/room_member.py
with
0 additions
and
15 deletions
synapse/handlers/room_member.py
+
0
−
15
View file @
526bf812
...
...
@@ -397,21 +397,6 @@ class RoomMemberHandler(BaseHandler):
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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment