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

@@ -542,6 +542,9 @@ func (portal *Portal) convertDiscordTextMessage(ctx context.Context, intent *app
}
previews := make([]*BeeperLinkPreview, 0)
for i, embed := range msg.Embeds {
if i == 0 && msg.MessageReference == nil && isReplyEmbed(embed) {
continue
}
with := log.With().
Str("embed_type", string(embed.Type)).
Int("embed_index", i)