Merge pull request #71 from matrix-org/erikj/disable_federation
Add flag to disable federation.
This commit is contained in:
commit
99ca68ba6d
2 changed files with 20 additions and 1 deletions
|
@ -12,6 +12,10 @@
|
||||||
"creator": {
|
"creator": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The ``user_id`` of the room creator. This is set by the homeserver."
|
"description": "The ``user_id`` of the room creator. This is set by the homeserver."
|
||||||
|
},
|
||||||
|
"m.federate": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Whether users on other servers can join this room. Defaults to ``true`` if key does not exist."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["creator"]
|
"required": ["creator"]
|
||||||
|
|
|
@ -779,6 +779,18 @@ options which can be set when creating a room:
|
||||||
This will tell the server to invite everyone in the list to the newly
|
This will tell the server to invite everyone in the list to the newly
|
||||||
created room.
|
created room.
|
||||||
|
|
||||||
|
``creation_content``
|
||||||
|
Type:
|
||||||
|
Object
|
||||||
|
Optional:
|
||||||
|
Yes
|
||||||
|
Value:
|
||||||
|
Extra keys to be added to the content of the ``m.room.create``. The server
|
||||||
|
will clober the following keys: ``creator``. Future versions of this
|
||||||
|
spec may allow the server to clobber other keys if required.
|
||||||
|
Description:
|
||||||
|
Allows clients to add keys to the content of ``m.room.create``.
|
||||||
|
|
||||||
``preset``
|
``preset``
|
||||||
Type:
|
Type:
|
||||||
String
|
String
|
||||||
|
@ -822,7 +834,10 @@ Example::
|
||||||
"preset": "public_chat",
|
"preset": "public_chat",
|
||||||
"room_alias_name": "thepub",
|
"room_alias_name": "thepub",
|
||||||
"name": "The Grand Duke Pub",
|
"name": "The Grand Duke Pub",
|
||||||
"topic": "All about happy hour"
|
"topic": "All about happy hour",
|
||||||
|
"creation_content": {
|
||||||
|
"m.federate": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
The home server will create a ``m.room.create`` event when the room is created,
|
The home server will create a ``m.room.create`` event when the room is created,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue