Bridge incoming reply embeds as replies

This commit is contained in:
Tulir Asokan
2023-05-06 22:47:50 +03:00
parent 4324b60a2c
commit 102b1510f8
3 changed files with 24 additions and 4 deletions

View File

@@ -217,7 +217,7 @@ func (portal *Portal) convertMessageBatch(log zerolog.Logger, source *User, mess
puppet := portal.bridge.GetPuppetByID(msg.Author.ID)
puppet.UpdateInfo(source, msg.Author)
intent := puppet.IntentFor(portal)
replyTo := portal.getReplyTarget(source, msg.MessageReference, true)
replyTo := portal.getReplyTarget(source, "", msg.MessageReference, msg.Embeds, true)
ts, _ := discordgo.SnowflakeTimestamp(msg.ID)
log := log.With().