diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-10-30 16:28:19 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-10-30 16:28:19 +0000 |
commit | 79b65f387538d1386369fcec142770ea91fdf8a2 (patch) | |
tree | f8ed20df424478782845ecd77c7041d3fcaa6674 /synapse | |
parent | Include room tags v1 /initialSync (diff) | |
download | synapse-79b65f387538d1386369fcec142770ea91fdf8a2.tar.xz |
Include tags in v1 room initial sync
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/handlers/message.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index c5dce3008c..8f156e5c84 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -459,6 +459,17 @@ class MessageHandler(BaseHandler): result = yield self._room_initial_sync_parted( user_id, room_id, pagin_config, member_event ) + + private_user_data = [] + tags = yield self.store.get_tags_for_room(user_id, room_id) + if tags: + private_user_data.append({ + "type": "m.tag", + "content": {"tags": tags}, + "room_id": room_id, + }) + result["private_user_data"] = private_user_data + defer.returnValue(result) @defer.inlineCallbacks |