webmail: in list of From address to use in compose window, don't add the catchall address

it was even selected by default.
This commit is contained in:
Mechiel Lukkien
2024-05-09 20:55:03 +02:00
parent 1fc8f165f7
commit 1a0a396713
2 changed files with 2 additions and 2 deletions

View File

@ -1860,7 +1860,7 @@ const compose = (opts: ComposeOptions, listMailboxes: listMailboxes) => {
}
let haveFrom = false
const fromOptions = accountAddresses.map(a => {
const fromOptions = accountAddresses.filter(a => a.User).map(a => {
const selected = opts.from && opts.from.length === 1 && equalAddress(a, opts.from[0]) || loginAddress && equalAddress(a, loginAddress) && (!opts.from || envelopeIdentity(opts.from))
const o = dom.option(formatAddress(a), selected ? attr.selected('') : [])
if (selected) {