Skip to content

Commit

Permalink
Define an avatar field in the room response
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Jul 13, 2023
1 parent 50ae2c8 commit 1d38101
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proposals/3575-sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ An entire response looks like:
// Room from room subscription
"!sub1:bar": {
"name": "Alice and Bob",
"avatar": "mxc://...",

This comment has been minimized.

Copy link
@Hywan

Hywan Jul 26, 2023

Member

Missing space before "avatar" :-)

This comment has been minimized.

Copy link
@DMRobertson

DMRobertson Jul 29, 2023

Contributor

Thanks, fixed in 71fb1a2

"initial": true,
"required_state": [
{"sender":"@alice:example.com","type":"m.room.create", "state_key":"", "content":{"creator":"@alice:example.com"}},
Expand All @@ -157,6 +158,7 @@ An entire response looks like:
// rooms from list
"!foo:bar": {
"name": "The calculated room name",
"avatar": "mxc://...",
"initial": true,
"required_state": [
{"sender":"@alice:example.com","type":"m.room.join_rules", "state_key":"", "content":{"join_rule":"invite"}},
Expand Down Expand Up @@ -504,6 +506,8 @@ The server will then return a `rooms` key which have the following fields:
// the room ID
"!foo:bar": {
"name": "The calculated room name",
// The MXC URL of the room's avatar, or the string "none" if this room has no prescribed avatar.
"avatar": "mxc://...",
// Flag which is set when this is the first time the server is sending this data on this connection.
// Clients can use this flag to replace or update their local state. When there is an update, servers
// MUST omit this flag entirely and NOT send "initial":false as this is wasteful on bandwidth. The
Expand Down

0 comments on commit 1d38101

Please sign in to comment.