Don't send empty tags list down sync
This commit is contained in:
parent
7baf66ef5d
commit
f60c9e2a01
|
@ -1583,6 +1583,11 @@ class SyncHandler(object):
|
||||||
user_id = sync_result_builder.sync_config.user.to_string()
|
user_id = sync_result_builder.sync_config.user.to_string()
|
||||||
tags = yield self.store.get_tags_for_room(user_id, room_id)
|
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 = []
|
account_data_events = []
|
||||||
if tags is not None:
|
if tags is not None:
|
||||||
account_data_events.append({
|
account_data_events.append({
|
||||||
|
|
Loading…
Reference in New Issue