fix(matrix): pin room_version=10 on the hive chat room createRoom
The restricted join rule needs room version >= 8. Pin it explicitly so a future homeserver-default change can't silently invalidate the restricted rule (which would fall back to invite-only and break the operator-joins- from-the-Space path). Per review on the PR.
This commit is contained in:
parent
fe17b5f8a7
commit
a5ccb6048a
1 changed files with 7 additions and 0 deletions
|
|
@ -1266,6 +1266,13 @@ pub async fn ensure_hive_chat_room(
|
|||
let body = serde_json::json!({
|
||||
"name": HIVE_CHAT_ROOM_NAME,
|
||||
"topic": HIVE_CHAT_ROOM_TOPIC,
|
||||
// Pin the room version explicitly: the `restricted` join rule
|
||||
// below needs room version >= 8. tuwunel's default is currently
|
||||
// higher, but pinning makes the dependency explicit so a future
|
||||
// homeserver-default change can't silently invalidate the
|
||||
// restricted rule (which would quietly fall back to invite-only
|
||||
// and break the "operator joins from the Space" path).
|
||||
"room_version": "10",
|
||||
"preset": "private_chat",
|
||||
"visibility": "private",
|
||||
"initial_state": [
|
||||
|
|
|
|||
Loading…
Reference in a new issue