Add newly created portals to personal filtering community
This commit is contained in:
@ -84,7 +84,7 @@ func (user *User) createCommunity() {
|
||||
}
|
||||
|
||||
func (user *User) addPortalToCommunity(portal *Portal) bool {
|
||||
if len(user.CommunityID) == 0 {
|
||||
if len(user.CommunityID) == 0 || len(portal.MXID) == 0 {
|
||||
return false
|
||||
}
|
||||
bot := user.bridge.Bot
|
||||
|
Reference in New Issue
Block a user