Skip to content

Commit 321679f

Browse files
authored
Add join_rule field to /publicRooms response (#3673)
Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
1 parent 15c679b commit 321679f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ import {
148148
UNSTABLE_MSC3089_TREE_SUBTYPE,
149149
MSC3912_RELATION_BASED_REDACTIONS_PROP,
150150
} from "./@types/event";
151-
import { IdServerUnbindResult, IImageInfo, Preset, Visibility } from "./@types/partials";
151+
import { IdServerUnbindResult, IImageInfo, JoinRule, Preset, Visibility } from "./@types/partials";
152152
import { EventMapper, eventMapperFor, MapperOpts } from "./event-mapper";
153153
import { randomString } from "./randomstring";
154154
import { BackupManager, IKeyBackup, IKeyBackupCheck, IPreparedKeyBackupVersion, TrustInfo } from "./crypto/backup";
@@ -736,6 +736,7 @@ export interface IPublicRoomsChunkRoom {
736736
guest_can_join: boolean;
737737
num_joined_members: number;
738738
room_type?: RoomType | string; // Added by MSC3827
739+
join_rule?: JoinRule.Knock | JoinRule.Public; // Added by MSC2403
739740
}
740741

741742
interface IPublicRoomsResponse {

0 commit comments

Comments
 (0)