Skip to content

Commit 6a314bd

Browse files
committed
Support overriding room version
1 parent 26bb221 commit 6a314bd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib/Plan.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export namespace Plan {
2929
private?: boolean;
3030
readOnly?: boolean;
3131
redirect?: string;
32+
roomVersion?: string;
3233
suggested?: boolean;
3334
tag?: string;
3435
topic?: string;

src/modules/Reconciler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ export default class extends Module {
578578
const created = await this.matrix.createRoom(
579579
mergeWithMatrixState<RoomCreateOptions, Partial<RoomCreateOptions>>(
580580
{
581-
room_version: this.plan.defaultRoomVersion,
581+
room_version: expected.roomVersion ?? this.plan.defaultRoomVersion,
582582
room_alias_name: expected.local,
583583
name: expected.name,
584584
power_level_content_override: this.getPowerLevels(inheritedUsers, expected),

0 commit comments

Comments
 (0)