2015-11-16 17:49:32 +01:00
|
|
|
Client Config
|
|
|
|
|
=============
|
|
|
|
|
|
2015-11-19 11:36:27 +01:00
|
|
|
.. _module:account_data:
|
2015-11-16 17:49:32 +01:00
|
|
|
|
|
|
|
|
Clients can store their config on their homeserver. This config will be synced
|
|
|
|
|
between different devices and can persist across installations on a particular
|
|
|
|
|
device.
|
|
|
|
|
|
|
|
|
|
The config may be either global or scoped to a particular rooms.
|
|
|
|
|
|
|
|
|
|
Events
|
|
|
|
|
------
|
|
|
|
|
|
2015-11-18 16:44:18 +01:00
|
|
|
The client recieves the config as a event in the ``account_data`` sections
|
2015-11-16 17:49:32 +01:00
|
|
|
of a v2 /sync.
|
|
|
|
|
|
|
|
|
|
These events can also be received in a v1 /events response or in the
|
2015-11-18 16:44:18 +01:00
|
|
|
``account_data`` section of a room in v1 /initialSync. ``m.tag``
|
2015-11-16 17:49:32 +01:00
|
|
|
events appearing in v1 /events will have a ``room_id`` with the room
|
|
|
|
|
the tags are for.
|
|
|
|
|
|
|
|
|
|
Client Behaviour
|
|
|
|
|
----------------
|
|
|
|
|
|
2015-11-19 11:36:27 +01:00
|
|
|
{{v2_account_data_http_api}}
|