From d2988096e413607bc36170ad4caf495ffc43b79f Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 17 Jul 2025 00:35:47 +0300 Subject: [PATCH] Allow v12 rooms to be created --- guildportal.go | 1 - portal.go | 1 - user.go | 4 +--- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/guildportal.go b/guildportal.go index d7be670..8230361 100644 --- a/guildportal.go +++ b/guildportal.go @@ -205,7 +205,6 @@ func (guild *Guild) CreateMatrixRoom(user *User, meta *discordgo.Guild) error { Preset: "private_chat", InitialState: initialState, CreationContent: creationContent, - RoomVersion: "11", }) if err != nil { guild.log.Warnln("Failed to create room:", err) diff --git a/portal.go b/portal.go index 926bd0c..d5dc879 100644 --- a/portal.go +++ b/portal.go @@ -489,7 +489,6 @@ func (portal *Portal) CreateMatrixRoom(user *User, channel *discordgo.Channel) e IsDirect: portal.IsPrivateChat(), InitialState: initialState, CreationContent: creationContent, - RoomVersion: "11", } if !portal.shouldSetDMRoomMetadata() && !portal.FriendNick { req.Name = "" diff --git a/user.go b/user.go index f209b33..c227490 100644 --- a/user.go +++ b/user.go @@ -340,11 +340,9 @@ func (user *User) getSpaceRoom(ptr *id.RoomID, name, topic string, parent id.Roo }, PowerLevelOverride: &event.PowerLevelsEventContent{ Users: map[id.UserID]int{ - user.bridge.Bot.UserID: 9001, - user.MXID: 50, + user.MXID: 50, }, }, - RoomVersion: "11", }) if err != nil {