Always use guild room for join rule

This commit is contained in:
Tulir Asokan 2024-06-24 21:28:45 +03:00
parent a6d9e62b49
commit 2da2aa47e9

View file

@ -459,7 +459,7 @@ func (portal *Portal) CreateMatrixRoom(user *User, channel *discordgo.Channel) e
Content: event.Content{Parsed: &event.JoinRulesEventContent{
JoinRule: event.JoinRuleRestricted,
Allow: []event.JoinRuleAllow{{
RoomID: spaceID,
RoomID: portal.Guild.MXID,
Type: event.JoinRuleAllowRoomMembership,
}},
}},