2021-10-18 18:12:49 +02:00
|
|
|
# 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": [
|
|
|
|
{
|
2021-10-20 16:29:59 +02:00
|
|
|
"room_id": "!LSWnevuzcRXZZKhqso:privacytools.io",
|
2021-10-18 18:12:49 +02:00
|
|
|
"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.
|
2021-10-20 16:29:59 +02:00
|
|
|
|
|
|
|
## Note to self
|
|
|
|
|
2021-10-20 16:43:39 +02:00
|
|
|
* `!LSWnevuzcRXZZKhqso:privacytools.io` - Tanukis - room version 5
|
|
|
|
* `!psumPMeAfzgAeQpXMG:feneas.org` - Mikaela.info (space) - room version 6
|