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
Container Registry
Model registry
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
Maunium
synapse
Commits
da146657
Commit
da146657
authored
8 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Comments
parent
a158c36a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/handlers/sync.py
+2
-2
2 additions, 2 deletions
synapse/handlers/sync.py
synapse/storage/roommember.py
+2
-0
2 additions, 0 deletions
synapse/storage/roommember.py
with
4 additions
and
2 deletions
synapse/handlers/sync.py
+
2
−
2
View file @
da146657
...
...
@@ -832,8 +832,8 @@ class SyncHandler(object):
@defer.inlineCallbacks
def
_have_rooms_changed
(
self
,
sync_result_builder
):
"""
Returns whether
any rooms have changed since the sync. Must be a
n
incremental sync
"""
Returns whether
there may be any new events that should be sent dow
n
the sync. Returns True if there are.
"""
user_id
=
sync_result_builder
.
sync_config
.
user
.
to_string
()
since_token
=
sync_result_builder
.
since_token
...
...
This diff is collapsed.
Click to expand it.
synapse/storage/roommember.py
+
2
−
0
View file @
da146657
...
...
@@ -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
],
)
...
...
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