mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 01:14:21 -05:00
Include tags in v1 room initial sync
This commit is contained in:
parent
fdf73c6855
commit
79b65f3875
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user