forked from mirror/mautrix-discord
Ignore updates to outgoing webhook messages
This commit is contained in:
parent
ad8efb864b
commit
cf7ae7c4db
1 changed files with 7 additions and 0 deletions
|
@ -834,6 +834,13 @@ func (portal *Portal) handleDiscordMessageUpdate(user *User, msg *discordgo.Mess
|
|||
} else {
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue