Fix for To/Cc/Bcc alignment and crush when opening eml (#449)

* Add margin to To/Cc/Bcc

* Fix crash when opening eml

* Remove useless top
This commit is contained in:
Tiktack
2024-11-03 15:45:10 +01:00
committed by GitHub
parent a1517f82bc
commit ff998a8bd1
2 changed files with 4 additions and 1 deletions

View File

@@ -467,7 +467,7 @@ namespace Wino.Mail.ViewModels
?? new AccountContact() { Name = mailboxAddress.Name, Address = mailboxAddress.Address };
// Make sure that user account first in the list.
if (foundContact.Address == initializedMailItemViewModel.AssignedAccount.Address)
if (foundContact.Address == initializedMailItemViewModel?.AssignedAccount?.Address)
{
accounts.Insert(0, foundContact);
}