From a5ccb6048aba21c98abacc60c06b6b0b99c5aa72 Mon Sep 17 00:00:00 2001 From: atlas Date: Sat, 6 Jun 2026 07:55:51 +0200 Subject: [PATCH] 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. --- hive-c0re/src/matrix.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hive-c0re/src/matrix.rs b/hive-c0re/src/matrix.rs index d76d6480..0205c1e4 100644 --- a/hive-c0re/src/matrix.rs +++ b/hive-c0re/src/matrix.rs @@ -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": [