Always use guild room for join rule
This commit is contained in:
@@ -459,7 +459,7 @@ func (portal *Portal) CreateMatrixRoom(user *User, channel *discordgo.Channel) e
|
|||||||
Content: event.Content{Parsed: &event.JoinRulesEventContent{
|
Content: event.Content{Parsed: &event.JoinRulesEventContent{
|
||||||
JoinRule: event.JoinRuleRestricted,
|
JoinRule: event.JoinRuleRestricted,
|
||||||
Allow: []event.JoinRuleAllow{{
|
Allow: []event.JoinRuleAllow{{
|
||||||
RoomID: spaceID,
|
RoomID: portal.Guild.MXID,
|
||||||
Type: event.JoinRuleAllowRoomMembership,
|
Type: event.JoinRuleAllowRoomMembership,
|
||||||
}},
|
}},
|
||||||
}},
|
}},
|
||||||
|
|||||||
Reference in New Issue
Block a user