Hardcode v11 for new rooms

Upcoming breaking changes in room v12 prevent safely using the default
room version and security embargoes prevent fixing them ahead of time.
This commit is contained in:
Tulir Asokan
2025-07-15 14:19:16 +03:00
parent d4e7289315
commit 111824486b
3 changed files with 3 additions and 0 deletions

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 = ""