Allow creating knock rooms (#11182)

Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
This commit is contained in:
Charly Nguyen
2023-07-10 10:01:03 +02:00
committed by GitHub
parent 01bd80fe59
commit fd749172e1
13 changed files with 197 additions and 3 deletions

View File

@@ -286,6 +286,8 @@ function textForJoinRulesEvent(ev: MatrixEvent, client: MatrixClient, allowJSX:
_t("%(senderDisplayName)s made the room invite only.", {
senderDisplayName,
});
case JoinRule.Knock:
return () => _t("%(senderDisplayName)s changed the join rule to ask to join.", { senderDisplayName });
case JoinRule.Restricted:
if (allowJSX) {
return () => (