summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-09-06 17:01:41 +0100
committerErik Johnston <erik@matrix.org>2018-09-06 17:01:41 +0100
commitf60c9e2a01598c1900ab785096aa379d1fb6ac5b (patch)
tree016f60650e23b95cf1f094fc9b4e2cbdfb0c7ce2 /synapse/handlers/sync.py
parentSend existing room tags down sync on join (diff)
downloadsynapse-f60c9e2a01598c1900ab785096aa379d1fb6ac5b.tar.xz
Don't send empty tags list down sync
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r--synapse/handlers/sync.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py

index 150d492cb0..7eed2fcc9b 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py
@@ -1583,6 +1583,11 @@ class SyncHandler(object): user_id = sync_result_builder.sync_config.user.to_string() tags = yield self.store.get_tags_for_room(user_id, room_id) + # If there aren't any tags, don't send the empty tags list down + # sync + if not tags: + tags = None + account_data_events = [] if tags is not None: account_data_events.append({