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:
@@ -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)
|
||||
|
||||
@@ -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 = ""
|
||||
|
||||
4
user.go
4
user.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user