From a8f4ada8a843ee89fdcc272b1489ea81471b59d0 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 24 Mar 2021 16:49:57 +0000 Subject: [PATCH] Make join_rules field of PublicRoomChunk an optional value --- proposals/2403-knock.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/proposals/2403-knock.md b/proposals/2403-knock.md index e96705ea..8bad1766 100644 --- a/proposals/2403-knock.md +++ b/proposals/2403-knock.md @@ -209,15 +209,14 @@ contain this information: } ``` -Therefore this proposal adds `join_rule` as a new, required field to a -`PublicRoomsChunk`. The `join_rule` of knockable rooms will be `knock`, thus -giving clients the information they need to attempt entry of -a room when a client selects it. It also allows clients to display +Therefore this proposal adds `join_rule` as a new, optional field to a +`PublicRoomsChunk`. The `join_rule` of knockable rooms will be `knock`, +thus giving clients the information they need to attempt entry of a +room when a client selects it. It also allows clients to display knockable rooms differently than publicly joinable ones. -For backwards compatibility with old servers, if a client does not find a -`join_rule` key in a chunk, then it should assume a `join_rule` key with -value `public`. +For backwards compatibility with old servers, the default value of +`join_rule` is `public`. ### Push Rules