3ebae337f1
embeds (quoted posts, invite links) were sometimes not attached to sent messages. the composer clears the embed state synchronously, but the actual send is deferred (a frame on native, a 20ms timeout on ios). by the time the deferred send ran, onSendMessage had been re-created with the now-cleared messageEmbed, so the embed was lost. thread the embed through as an argument captured at submit time, the same way replyTo already is, so an intermediate render can't drop it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>