mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2024-11-22 03:09:22 +01:00
matrix: m.room.join_rules
This commit is contained in:
parent
323e323219
commit
54d9f88808
49
matrix/m.room.join_rules/README.md
Normal file
49
matrix/m.room.join_rules/README.md
Normal file
@ -0,0 +1,49 @@
|
||||
# m.room.join_rules
|
||||
|
||||
Controls who can join the room. This is best to configure in room settings.
|
||||
|
||||
## knocking
|
||||
|
||||
Requires room version 7
|
||||
|
||||
```json
|
||||
{
|
||||
"join_rule": "knock"
|
||||
}
|
||||
```
|
||||
|
||||
## membership of another room
|
||||
|
||||
Requires room version <del>8</del> 9. Offers only Spaces in room settings
|
||||
|
||||
```json
|
||||
{
|
||||
"allow": [
|
||||
{
|
||||
"room_id": "!oHIvaRnuEEIDavQVRJ:matrix.org",
|
||||
"type": "m.room_membership"
|
||||
}
|
||||
],
|
||||
"join_rule": "restricted"
|
||||
}
|
||||
```
|
||||
|
||||
### membership of one of multiple rooms
|
||||
|
||||
```json
|
||||
{
|
||||
"allow": [
|
||||
{
|
||||
"room_id": "!psumPMeAfzgAeQpXMG:feneas.org",
|
||||
"type": "m.room_membership"
|
||||
},
|
||||
{
|
||||
"room_id": "!ddFNqIRUacwdicInJz:feneas.org",
|
||||
"type": "m.room_membership"
|
||||
}
|
||||
],
|
||||
"join_rule": "restricted"
|
||||
}
|
||||
```
|
||||
|
||||
It can be presumed that multiple spaces is simply copying that more.
|
Loading…
Reference in New Issue
Block a user