Skip to content

Commit

Permalink
Document how per-room profiles work
Browse files Browse the repository at this point in the history
This is current behaviour only. The behaviour for what actually happens when you set a profile after a per-room profile is undefined.

Fixes https://github.com/matrix-org/matrix-doc/issues/545
  • Loading branch information
turt2live committed Jul 4, 2018
1 parent eb0a8c0 commit 32ef663
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions specification/client_server_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,15 @@ users, they should include the display name and avatar URL fields in these
events so that clients already have these details to hand, and do not have to
perform extra round trips to query it.

Per-room Profiles
+++++++++++++++++
Users may wish to have a different display name or avatar or both in a specific
room. To accomplish this, the client should modify the ``displayname`` and
``avatar_url`` properties of the user's ``m.room.member`` event in the room.

Clients SHOULD use the ``m.room.member`` event for users in a room when showing
profiles to the user.

Security
--------

Expand Down

0 comments on commit 32ef663

Please sign in to comment.