Browse Source

Fix updating space in UpdateInfo

Tulir Asokan 2 years ago
parent
commit
0471239b29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      portal.go

+ 1 - 1
portal.go

@@ -1781,7 +1781,7 @@ func (portal *Portal) UpdateInfo(source *User, meta *discordgo.Channel) *discord
 	}
 	changed = portal.UpdateTopic(meta.Topic) || changed
 	changed = portal.UpdateParent(meta.ParentID) || changed
-	if portal.MXID != "" && portal.IsInSpace(source) {
+	if portal.MXID != "" && !portal.IsInSpace(source) {
 		changed = portal.updateSpace(source) || changed
 	}
 	if changed {