Double check bridging status before handling message

Some webhook messages don't seem to have the guild ID specified
This commit is contained in:
Tulir Asokan
2023-02-04 13:45:50 +02:00
parent a2121347e8
commit 7cdd1bb9e4

View File

@@ -879,6 +879,10 @@ func (user *User) pushPortalMessage(msg interface{}, typeName, channelID, guildI
}
portal = thread.Parent
}
// Double check because some messages don't have the guild ID specified.
if !user.bridgeMessage(portal.GuildID) {
return
}
portal.discordMessages <- portalDiscordMessage{
msg: msg,