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": [
|
|
|
|
{
|
2022-07-28 19:25:21 +02:00
|
|
|
"room_id": "!whatever:example.net",
|
2021-10-18 18:12:49 +02:00
|
|
|
"type": "m.room_membership"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"join_rule": "restricted"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-07-28 19:25:21 +02:00
|
|
|
It can be assumed that multiple spaces is simply copying that more,
|
|
|
|
see below (with exception of `join_rule`)
|
|
|
|
|
|
|
|
### merging knocking and membership of another room
|
|
|
|
|
|
|
|
Practically the same, but requires room version 10 and new `join_rule` known as
|
|
|
|
`knock_restricted`
|
2021-10-18 18:12:49 +02:00
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"allow": [
|
|
|
|
{
|
2022-07-28 19:25:21 +02:00
|
|
|
"room_id": "!ddFNqIRUacwdicInJz:feneas.org",
|
2021-10-18 18:12:49 +02:00
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
2022-07-28 19:25:21 +02:00
|
|
|
"room_id": "!SxRXoLGlraVfdhZBYy:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!fGtopoZuCySnTsSdsU:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!xFKkXCpcnEwgBEQBFt:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!ruWhXaXgrPjaSSecvb:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!zYPetrOdqxxQYoWCTb:the-apothecary.club",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!watercooler-v9:maunium.net",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!etDMqntYVqugEClPcE:artemislena.eu",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!sOLQNHloevPHIEWcYN:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!KMbEUhVQHLwZHmwzKX:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!rCWNvpCTZHQkiRYUDE:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!AUKUBkWpbVaNhXJhuD:vi.fi",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!TtWVeGGDmpLieTGJss:pirateriot.net",
|
2021-10-18 18:12:49 +02:00
|
|
|
"type": "m.room_membership"
|
2022-08-04 18:26:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!xwkzwkGafsaYJOFWoj:the-apothecary.club",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!WDaMZSVinTZRLOTajM:hacklab.fi",
|
|
|
|
"type": "m.room_membership"
|
2022-08-07 20:43:52 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!IwPxifXSjBLghpVEMh:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
2021-10-18 18:12:49 +02:00
|
|
|
}
|
|
|
|
],
|
2022-07-28 19:25:21 +02:00
|
|
|
"join_rule": "knock_restricted"
|
2021-10-18 18:12:49 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-10-20 16:29:59 +02:00
|
|
|
## Note to self
|
|
|
|
|
2021-10-20 16:43:39 +02:00
|
|
|
* `!psumPMeAfzgAeQpXMG:feneas.org` - Mikaela.info (space) - room version 6
|
2022-07-28 19:25:21 +02:00
|
|
|
* `!SxRXoLGlraVfdhZBYy:matrix.org` - eu.aminda.space v9
|
|
|
|
* `!fGtopoZuCySnTsSdsU:matrix.org` - eu.aminda.space v10
|
|
|
|
* `!xFKkXCpcnEwgBEQBFt:matrix.org` - aminda.eu v9
|
|
|
|
* `!ruWhXaXgrPjaSSecvb:matrix.org` - aminda.eu v10
|
|
|
|
* `!zYPetrOdqxxQYoWCTb:the-apothecary.club` - The Apothecary Community v6
|
|
|
|
* `!watercooler-v9:maunium.net` - WaterDuck v9
|
|
|
|
* `!etDMqntYVqugEClPcE:artemislena.eu` - Community Moderation Effort v9
|
|
|
|
* `!sOLQNHloevPHIEWcYN:matrix.org` - Secure Messaging Apps v6
|
|
|
|
* `!KMbEUhVQHLwZHmwzKX:matrix.org` - Matrix Haters v9
|
|
|
|
* `!rCWNvpCTZHQkiRYUDE:matrix.org` - Matrix.fi v5
|
|
|
|
* `!AUKUBkWpbVaNhXJhuD:vi.fi` - Olohuone v6
|
|
|
|
* `!TtWVeGGDmpLieTGJss:pirateriot.net` - GlobalPirates v9
|
2022-08-04 18:26:29 +02:00
|
|
|
* `!xwkzwkGafsaYJOFWoj:the-apothecary.club` - Apothecary Homeserver default/welcome room (v5)
|
|
|
|
* `!WDaMZSVinTZRLOTajM:hacklab.fi` - Matrix Suomi (Space) v6
|
2022-08-07 20:43:52 +02:00
|
|
|
* `!IwPxifXSjBLghpVEMh:matrix.org` - FluffyChat v5
|