@bobfrankston/rmfmail 1.2.83 → 1.2.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/app.bundle.js +3 -0
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +8 -0
- package/client/app.js.map +1 -1
- package/client/app.ts +8 -0
- package/client/compose/compose.bundle.js +1 -0
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/compose/compose.js +9 -0
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +8 -0
- package/package.json +1 -1
package/client/app.bundle.js
CHANGED
|
@@ -8180,6 +8180,9 @@ async function openCompose(mode, overrideMsg, overrideAccountId) {
|
|
|
8180
8180
|
init.cc = Array.isArray(msg.cc) ? msg.cc : [];
|
|
8181
8181
|
init.subject = msg.subject || "";
|
|
8182
8182
|
init.bodyHtml = editAsNewBody(msg);
|
|
8183
|
+
const origFrom = msg.from?.address ? bareAddress(msg.from.address) : "";
|
|
8184
|
+
const ownFrom = origFrom && accounts.some((acc) => bareAddress(acc.email || "") === origFrom) ? origFrom : void 0;
|
|
8185
|
+
init.fromAddress = ownFrom || detectReplyFrom();
|
|
8183
8186
|
}
|
|
8184
8187
|
if (msg && (mode === "editAsNew" || mode === "forward") && Array.isArray(msg.attachments) && msg.attachments.length) {
|
|
8185
8188
|
const msgAccountId = current?.accountId || accountId;
|