@remit/web-client 0.0.184 → 0.0.185

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/web-client",
3
- "version": "0.0.184",
3
+ "version": "0.0.185",
4
4
  "type": "module",
5
5
  "description": "Remit web client, published as composable primitives — the app shell, auth shells, and runtime config. A distributor imports what it composes and bundles it.",
6
6
  "exports": {
@@ -523,7 +523,14 @@ export const ComposeForm = ({
523
523
  setSubject(buildReplySubject(sourceMessage.envelope.subject));
524
524
  }
525
525
 
526
+ // A forward is addressed to nobody, so it writes the address fields the
527
+ // way a reply writes them. Setting only the subject read as "keep what is
528
+ // already there", which sent the forward to the person being answered
529
+ // (#797).
526
530
  if (mode === "forward") {
531
+ setToAddresses([]);
532
+ setCcAddresses([]);
533
+ setBccAddresses([]);
527
534
  setSubject(buildForwardSubject(sourceMessage.envelope.subject));
528
535
  }
529
536
  }, [mode, sourceMessage, account?.email]);