From 3ba0dead638615310c78a6acdc5eaee42152d72b Mon Sep 17 00:00:00 2001 From: Hamza Date: Wed, 3 Jun 2026 16:52:25 +0200 Subject: [PATCH] fix: reply to own message addresses original recipient When replying to a message the user sent themselves, the simple reply composer addressed the To field back to the user instead of the original recipient. Detect self-sent messages and follow up with the original recipient(s), mirroring the existing follow-up behaviour. Assisted-by: Claude:claude-opus-4-8 Signed-off-by: Hamza --- src/store/mainStore/actions.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/store/mainStore/actions.js b/src/store/mainStore/actions.js index 055a71b9c3..ddc04e91d9 100644 --- a/src/store/mainStore/actions.js +++ b/src/store/mainStore/actions.js @@ -521,8 +521,13 @@ export default function mainStoreActions() { if (reply.mode === 'reply') { logger.debug('Show simple reply composer', { reply }) + const account = this.getAccount(reply.data.accountId) let to = original.replyTo !== undefined ? original.replyTo : reply.data.from - if (reply.followUp) { + // Replying to a message we sent ourselves: follow up with the + // original recipient(s) instead of addressing ourselves. + const isOwnMessage = to.length > 0 + && to.every((addr) => addr.email === account.emailAddress) + if (reply.followUp || isOwnMessage) { to = reply.data.to } this.startComposerSessionMutation({