mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Add private_user_data to v1 /initialSync
This commit is contained in:
parent
65066a76b3
commit
b49472e3b0
|
|
@ -245,7 +245,12 @@ paths:
|
||||||
"user_id": "@alice:localhost"
|
"user_id": "@alice:localhost"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"visibility": "private"
|
"visibility": "private",
|
||||||
|
"private_user_data": [{
|
||||||
|
"type": "m.tag",
|
||||||
|
"content": {"tags": ["work"]},
|
||||||
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost"
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -332,6 +337,16 @@ paths:
|
||||||
description: |-
|
description: |-
|
||||||
Whether this room is visible to the ``/publicRooms`` API
|
Whether this room is visible to the ``/publicRooms`` API
|
||||||
or not."
|
or not."
|
||||||
|
private_user_data:
|
||||||
|
type: array
|
||||||
|
description: |-
|
||||||
|
The private data that this user has attached to
|
||||||
|
this room.
|
||||||
|
items:
|
||||||
|
title: Event
|
||||||
|
type: object
|
||||||
|
allOf:
|
||||||
|
- "$ref": "core-event-schema/event.json"
|
||||||
required: ["room_id", "membership"]
|
required: ["room_id", "membership"]
|
||||||
required: ["end", "rooms", "presence"]
|
required: ["end", "rooms", "presence"]
|
||||||
404:
|
404:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue