summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-11-24 00:38:44 +0000
committerErik Johnston <erik@matrix.org>2018-02-15 09:51:09 +0000
commitb07a33f0243bf2c22cc40b3b9f022b62a11b1654 (patch)
treedcadfd972bedab93f31e9970aef41663799d8983 /synapse/handlers
parentDisable auth on room_members for now (diff)
downloadsynapse-github/matrix-org-hotfixes-refactor.tar.xz
Avoid doing presence updates on replication reconnect github/matrix-org-hotfixes-refactor matrix-org-hotfixes-refactor
Presence is supposed to be disabled on matrix.org, so we shouldn't send a load
of USER_SYNC commands every time the synchrotron reconnects to the master.
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/presence.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py

index 2a2cfd9339..17f577d5cd 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py
@@ -445,6 +445,7 @@ class PresenceHandler(object): Returns: set(str): A set of user_id strings. """ + # presence is disabled on matrix.org, so we return the empty set return set() syncing_user_ids = { user_id for user_id, count in self.user_to_num_current_syncs.items()