Added flyout on click for recipients (#436)

User accoutn will be first in recipents list
Recipient shows eather name or address to save space
Added tooltip which shows both ( Name and Address)
Added ";" to have visual separation between names, since we don't have address all the time.
To/Cc/Bcc now at the top of their container, previously they were center and it was hard to understand is it To/CC/Bcc recipient when there many of them
This commit is contained in:
Tiktack
2024-10-21 21:02:02 +02:00
committed by GitHub
parent c00efff554
commit 762be492bb
4 changed files with 64 additions and 9 deletions

View File

@@ -466,7 +466,15 @@ namespace Wino.Mail.ViewModels
var foundContact = await _contactService.GetAddressInformationByAddressAsync(mailboxAddress.Address).ConfigureAwait(false)
?? new AccountContact() { Name = mailboxAddress.Name, Address = mailboxAddress.Address };
accounts.Add(foundContact);
// Make sure that user account first in the list.
if (foundContact.Address == initializedMailItemViewModel.AssignedAccount.Address)
{
accounts.Insert(0, foundContact);
}
else
{
accounts.Add(foundContact);
}
}
else if (item is GroupAddress groupAddress)
{