Skip to content
Snippets Groups Projects
Commit fdf73c68 authored by Mark Haines's avatar Mark Haines
Browse files

Include room tags v1 /initialSync

parent f40b0ed5
No related branches found
No related tags found
No related merge requests found
...@@ -322,6 +322,8 @@ class MessageHandler(BaseHandler): ...@@ -322,6 +322,8 @@ class MessageHandler(BaseHandler):
user, pagination_config.get_source_config("receipt"), None user, pagination_config.get_source_config("receipt"), None
) )
tags_by_room = yield self.store.get_tags_for_user(user_id)
public_room_ids = yield self.store.get_public_room_ids() public_room_ids = yield self.store.get_public_room_ids()
limit = pagin_config.limit limit = pagin_config.limit
...@@ -398,6 +400,16 @@ class MessageHandler(BaseHandler): ...@@ -398,6 +400,16 @@ class MessageHandler(BaseHandler):
serialize_event(c, time_now, as_client_event) serialize_event(c, time_now, as_client_event)
for c in current_state.values() for c in current_state.values()
] ]
private_user_data = []
tags = tags_by_room.get(event.room_id)
if tags:
private_user_data.append({
"room_id": event.room_id,
"type": "m.tag",
"content": {"tags": tags},
})
d["private_user_data"] = private_user_data
except: except:
logger.exception("Failed to get snapshot") logger.exception("Failed to get snapshot")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment