Revert "Allow v12 rooms to be created"

This reverts commit d2988096e4.

The bridge can handle v12 rooms fine, but creation requires additional considerations

Fixes #193
This commit is contained in:
Tulir Asokan
2025-08-16 23:58:52 +03:00
parent 820951cb6e
commit 98e5e9de4a
3 changed files with 5 additions and 1 deletions

View File

@@ -205,6 +205,7 @@ 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)

View File

@@ -489,6 +489,7 @@ 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 = ""

View File

@@ -340,9 +340,11 @@ func (user *User) getSpaceRoom(ptr *id.RoomID, name, topic string, parent id.Roo
},
PowerLevelOverride: &event.PowerLevelsEventContent{
Users: map[id.UserID]int{
user.MXID: 50,
user.bridge.Bot.UserID: 9001,
user.MXID: 50,
},
},
RoomVersion: "11",
})
if err != nil {