Property change based updates on the mails for fast bulk operations.
This commit is contained in:
@@ -95,6 +95,8 @@ public sealed partial class ImagePreviewControl : PersonPicture
|
||||
if (string.IsNullOrEmpty(e.PropertyName)
|
||||
|| e.PropertyName == nameof(IMailItemDisplayInformation.Base64ContactPicture)
|
||||
|| e.PropertyName == nameof(IMailItemDisplayInformation.SenderContact)
|
||||
|| e.PropertyName == nameof(IMailItemDisplayInformation.FromName)
|
||||
|| e.PropertyName == nameof(IMailItemDisplayInformation.FromAddress)
|
||||
|| e.PropertyName == nameof(IMailItemDisplayInformation.ThumbnailUpdatedEvent))
|
||||
{
|
||||
RequestRefresh();
|
||||
|
||||
@@ -243,6 +243,10 @@ public class NotificationBuilder : INotificationBuilder
|
||||
{
|
||||
ToastNotificationManager.History.Remove(mailUniqueId.ToString(), null);
|
||||
}
|
||||
catch (ArgumentException)
|
||||
{
|
||||
// Notification does not exists. Ignore.
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex, $"Failed to remove notification for mail {mailUniqueId}");
|
||||
|
||||
Reference in New Issue
Block a user