2024-06-19 07:53:27 +02:00
|
|
|
<!-- @format -->
|
|
|
|
|
2023-03-16 18:53:28 +01:00
|
|
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
|
|
|
|
|
|
- [m.room.join_rules](#mroomjoin_rules)
|
|
|
|
- [knocking](#knocking)
|
|
|
|
- [membership of another room](#membership-of-another-room)
|
|
|
|
- [merging knocking and membership of another room](#merging-knocking-and-membership-of-another-room)
|
|
|
|
- [Note to self](#note-to-self)
|
2023-06-07 10:47:45 +02:00
|
|
|
- [See also](#see-also)
|
2023-03-16 18:53:28 +01:00
|
|
|
|
|
|
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
|
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
|
|
|
|
{
|
2023-02-26 18:01:13 +01:00
|
|
|
"join_rule": "knock"
|
2021-10-18 18:12:49 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## membership of another room
|
|
|
|
|
|
|
|
Requires room version <del>8</del> 9. Offers only Spaces in room settings
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2023-02-26 18:01:13 +01:00
|
|
|
"allow": [
|
|
|
|
{
|
|
|
|
"room_id": "!whatever:example.net",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"join_rule": "restricted"
|
2021-10-18 18:12:49 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2024-06-19 07:53:27 +02:00
|
|
|
It can be assumed that multiple spaces is simply copying that more, see below
|
|
|
|
(with exception of `join_rule`)
|
2022-07-28 19:25:21 +02:00
|
|
|
|
|
|
|
### merging knocking and membership of another room
|
|
|
|
|
2024-06-19 07:53:27 +02:00
|
|
|
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
|
|
|
|
{
|
2023-02-26 18:01:13 +01:00
|
|
|
"allow": [
|
|
|
|
{
|
|
|
|
"room_id": "!ddFNqIRUacwdicInJz:feneas.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!fGtopoZuCySnTsSdsU:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!IVRSynLjDUQRVOHnbE:pikaviestin.fi",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!ruWhXaXgrPjaSSecvb:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!watercooler-v10:maunium.net",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!etDMqntYVqugEClPcE:artemislena.eu",
|
|
|
|
"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": "!MHqztrxnQriEOyNLjW:pirateriot.net",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!WDaMZSVinTZRLOTajM:hacklab.fi",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!IwPxifXSjBLghpVEMh:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!iQaStEQNwaqxQfyhZi:sorunome.de",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!ESKEvwumMpSRZTnJOI:pikaviestin.fi",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"room_id": "!azROMLeGEMPdbdWnbk:matrix.org",
|
|
|
|
"type": "m.room_membership"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"join_rule": "knock_restricted"
|
2021-10-18 18:12:49 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-10-20 16:29:59 +02:00
|
|
|
## Note to self
|
|
|
|
|
2023-02-26 18:01:13 +01:00
|
|
|
- `!fGtopoZuCySnTsSdsU:matrix.org` - eu.aminda.space v10
|
|
|
|
- `!ruWhXaXgrPjaSSecvb:matrix.org` - aminda.eu v10
|
|
|
|
- `!IVRSynLjDUQRVOHnbE:pikaviestin.fi` - Nova Fervoro v10
|
|
|
|
- `!watercooler-v10:maunium.net` - WaterDuck v10
|
|
|
|
- `!etDMqntYVqugEClPcE:artemislena.eu` - Community Moderation Effort v9
|
|
|
|
- `!KMbEUhVQHLwZHmwzKX:matrix.org` - Matrix Haters v9
|
|
|
|
- `!rCWNvpCTZHQkiRYUDE:matrix.org` - Matrix.fi v5
|
|
|
|
- `!AUKUBkWpbVaNhXJhuD:vi.fi` - Olohuone v6
|
|
|
|
- `!MHqztrxnQriEOyNLjW:pirateriot.net` - GlobalPirates v10
|
|
|
|
- `!WDaMZSVinTZRLOTajM:hacklab.fi` - Matrix Suomi (Space) v6
|
|
|
|
- `!IwPxifXSjBLghpVEMh:matrix.org` - FluffyChat (room) v5
|
|
|
|
- `!iQaStEQNwaqxQfyhZi:sorunome.de` - FluffyChat Space v6
|
|
|
|
- `!ESKEvwumMpSRZTnJOI:pikaviestin.fi` - Piraattipuolue v10
|
|
|
|
- `!azROMLeGEMPdbdWnbk:matrix.org` - Piraattipuolueen työrauha v9
|
2023-06-07 10:47:45 +02:00
|
|
|
|
|
|
|
## See also
|
|
|
|
|
|
|
|
- `m.room.history_visibility`
|