Add channel is bridgeable check to channel update handler

This commit is contained in:
Tulir Asokan
2025-06-08 00:24:19 +03:00
parent d69e4e9881
commit a6fca7ce43

View File

@@ -1153,7 +1153,7 @@ func (user *User) channelUpdateHandler(c *discordgo.ChannelUpdate) {
portal := user.GetPortalByMeta(c.Channel)
if c.GuildID == "" {
user.handlePrivateChannel(portal, c.Channel, time.Now(), true, user.IsInSpace(portal.Key.String()))
} else {
} else if user.channelIsBridgeable(c.Channel) {
portal.UpdateInfo(user, c.Channel)
}
}