Merge branch 'main' of https://github.com/bkaankose/Wino-Mail
This commit is contained in:
@@ -18,17 +18,22 @@ public class AccountContactViewModel : AccountContact
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsMe { get; set; }
|
public bool IsMe { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets whether the ShortNameOrYOu should have semicolon.
|
||||||
|
/// </summary>
|
||||||
|
public bool IsSemicolon { get; set; } = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides a short name of the contact.
|
/// Provides a short name of the contact.
|
||||||
/// <see cref="ShortDisplayName"/> or "You"
|
/// <see cref="ShortDisplayName"/> or "You"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ShortNameOrYou => IsMe ? $"{Translator.AccountContactNameYou};" : ShortDisplayName;
|
public string ShortNameOrYou => (IsMe ? Translator.AccountContactNameYou : ShortDisplayName) + (IsSemicolon ? ";" : string.Empty);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Short display name of the contact.
|
/// Short display name of the contact.
|
||||||
/// Either Name or Address.
|
/// Either Name or Address.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ShortDisplayName => Address == Name || string.IsNullOrWhiteSpace(Name) ? $"{Address.ToLowerInvariant()};" : $"{Name};";
|
public string ShortDisplayName => Address == Name || string.IsNullOrWhiteSpace(Name) ? $"{Address.ToLowerInvariant()}" : $"{Name}";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Display name of the contact in a format: Name <Address>.
|
/// Display name of the contact in a format: Name <Address>.
|
||||||
|
|||||||
@@ -494,6 +494,9 @@ public partial class MailRenderingPageViewModel : MailBaseViewModel,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (accounts.Count > 0)
|
||||||
|
accounts[^1].IsSemicolon = false;
|
||||||
|
|
||||||
return accounts;
|
return accounts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user