Ignore updates to outgoing webhook messages
This commit is contained in:
@@ -834,6 +834,13 @@ func (portal *Portal) handleDiscordMessageUpdate(user *User, msg *discordgo.Mess
|
|||||||
} else {
|
} else {
|
||||||
portal.recentMessages.Replace(msg.ID, msg)
|
portal.recentMessages.Replace(msg.ID, msg)
|
||||||
}
|
}
|
||||||
|
if msg.Author.ID == portal.RelayWebhookID {
|
||||||
|
log.Debug().
|
||||||
|
Str("message_id", msg.ID).
|
||||||
|
Str("author_id", msg.Author.ID).
|
||||||
|
Msg("Dropping edit from relay webhook")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
intent := portal.bridge.GetPuppetByID(msg.Author.ID).IntentFor(portal)
|
intent := portal.bridge.GetPuppetByID(msg.Author.ID).IntentFor(portal)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user