From 6dd5ab6ca4f439b469007ca26c807b8bd677c76f Mon Sep 17 00:00:00 2001 From: Charly Nguyen Date: Mon, 21 Aug 2023 09:03:49 +0200 Subject: [PATCH] Add `join_rule` field to /publicRooms response Signed-off-by: Charly Nguyen --- src/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index 09e0798425c..f7859b20ed6 100644 --- a/src/client.ts +++ b/src/client.ts @@ -148,7 +148,7 @@ import { UNSTABLE_MSC3089_TREE_SUBTYPE, MSC3912_RELATION_BASED_REDACTIONS_PROP, } from "./@types/event"; -import { IdServerUnbindResult, IImageInfo, Preset, Visibility } from "./@types/partials"; +import { IdServerUnbindResult, IImageInfo, JoinRule, Preset, Visibility } from "./@types/partials"; import { EventMapper, eventMapperFor, MapperOpts } from "./event-mapper"; import { randomString } from "./randomstring"; import { BackupManager, IKeyBackup, IKeyBackupCheck, IPreparedKeyBackupVersion, TrustInfo } from "./crypto/backup"; @@ -736,6 +736,7 @@ export interface IPublicRoomsChunkRoom { guest_can_join: boolean; num_joined_members: number; room_type?: RoomType | string; // Added by MSC3827 + join_rule?: JoinRule.Knock | JoinRule.Public; // Added by MSC2403 } interface IPublicRoomsResponse {