This patch doesn't appear to fix anything:
1. When you change the from, Recipients2CompFields() still fires.
2. When you press reply on a message with To and Cc, it fires at a time where Recipients2CompFields() doesn't work, that is the original complaint here. The desired behaviour is to fire, but only when To and Cc fields are ready. Try adding the code below to Recipients2CompFields() to see what I mean. Replying to a message with Cc field doesn't deliver that Cc field, most likely because it's not ready yet.
```
// Each pill knows from which recipient they were generated
// (addr_to, addrs_bcc, etc.).
let recipientType = pill.getAttribute("recipienttype");
console.log("Recipients2CompFields ", recipientType, recipient);
```
Bug 1647050 Comment 14 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
This patch doesn't appear to fix anything:
1. When you change the from, onRecipientsChanged() still fires, not from LoadIdentity() but earlier.
2. When you press reply on a message with To and Cc, it fires at a time where Recipients2CompFields() doesn't work, that is the original complaint here. The desired behaviour is to fire, but only when To and Cc fields are ready. Try adding the code below to Recipients2CompFields() to see what I mean. Replying to a message with Cc field doesn't deliver that Cc field, most likely because it's not ready yet.
```
// Each pill knows from which recipient they were generated
// (addr_to, addrs_bcc, etc.).
let recipientType = pill.getAttribute("recipienttype");
console.log("Recipients2CompFields ", recipientType, recipient);
```
This patch doesn't appear to fix anything:
1. When you change the From:, onRecipientsChanged() still fires, not from LoadIdentity() but earlier.
2. When you press reply on a message with To and Cc, it fires at a time where Recipients2CompFields() doesn't work, that is the original complaint here. The desired behaviour is to fire, but only when To and Cc fields are ready. Try adding the code below to Recipients2CompFields() to see what I mean. Replying to a message with Cc field doesn't deliver that Cc field, most likely because it's not ready yet.
```
// Each pill knows from which recipient they were generated
// (addr_to, addrs_bcc, etc.).
let recipientType = pill.getAttribute("recipienttype");
console.log("Recipients2CompFields ", recipientType, recipient);
```