compose.bcc() doesn't return current BCC addresses
I made a fix in my project, I'm not sure how stable it would be, so if someone wants, you can use my code for pull request:
let bccs = [];
let bccSpans = currentCompose.dom('bcc')[0].parentElement.querySelectorAll('span[email]');
bccSpans.forEach(bccSpan => bccs.push(bccSpan.getAttribute('email')));
So there are two selectors of interest - "textarea[name=bcc]" , which is where compose.bcc() currently points to corresponds to the textarea used to type additional emails into BCC. For emails that are already included (or after pressing enter), they are added to "", so the selector would be "input[name=bcc]". @josteink this also applies to cc/to as well. Depending on the expected functionality, it would seem the desired outcome is to select fully typed and existing emails as opposed to the text area. Change would be trivial on dom: function(lookup) {}
PRs welcome :)