Toast actions.
This commit is contained in:
@@ -52,23 +52,23 @@ public class NotificationBuilder : INotificationBuilder
|
||||
{
|
||||
var mailItem = await _mailService.GetSingleMailItemAsync(item.UniqueId);
|
||||
|
||||
//if (mailItem == null || mailItem.AssignedFolder == null)
|
||||
// continue;
|
||||
if (mailItem == null || mailItem.AssignedFolder == null)
|
||||
continue;
|
||||
|
||||
//// Only create notifications for Inbox folder mails
|
||||
//if (mailItem.AssignedFolder.SpecialFolderType != SpecialFolderType.Inbox)
|
||||
// continue;
|
||||
// Only create notifications for Inbox folder mails
|
||||
if (mailItem.AssignedFolder.SpecialFolderType != SpecialFolderType.Inbox)
|
||||
continue;
|
||||
|
||||
//// Skip folders with synchronization disabled
|
||||
//if (!mailItem.AssignedFolder.IsSynchronizationEnabled)
|
||||
// continue;
|
||||
// Skip folders with synchronization disabled
|
||||
if (!mailItem.AssignedFolder.IsSynchronizationEnabled)
|
||||
continue;
|
||||
|
||||
//// Skip already read mails
|
||||
//if (mailItem.IsRead)
|
||||
//{
|
||||
// RemoveNotification(mailItem.UniqueId);
|
||||
// continue;
|
||||
//}
|
||||
// Skip already read mails
|
||||
if (mailItem.IsRead)
|
||||
{
|
||||
RemoveNotification(mailItem.UniqueId);
|
||||
continue;
|
||||
}
|
||||
|
||||
inboxMailItems.Add(mailItem);
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ using Microsoft.Windows.Globalization;
|
||||
using Nito.AsyncEx;
|
||||
using Serilog;
|
||||
using Windows.ApplicationModel.Activation;
|
||||
using Windows.ApplicationModel.AppService;
|
||||
using Windows.ApplicationModel.Core;
|
||||
using Windows.Foundation.Metadata;
|
||||
using Windows.Storage;
|
||||
@@ -84,9 +83,7 @@ public abstract class WinoApplication : Application, IRecipient<LanguageChanged>
|
||||
{
|
||||
yield return DatabaseService;
|
||||
yield return TranslationService;
|
||||
yield return NewThemeService; // Initialize NewThemeService instead of old ThemeService
|
||||
yield return Services.GetService<SynchronizationManagerInitializer>();
|
||||
// yield return ThemeService; // Keep old service for backward compatibility but don't initialize
|
||||
}
|
||||
|
||||
public Task InitializeServicesAsync() => GetActivationServices().Select(a => a.InitializeAsync()).WhenAll();
|
||||
|
||||
Reference in New Issue
Block a user