Handle attention in sync manager.

This commit is contained in:
Burak Kaan Köse
2025-11-14 12:31:24 +01:00
parent 87d2ffdb71
commit 88fe141b16
@@ -156,6 +156,15 @@ public class SynchronizationManager : ISynchronizationManager
return result;
}
catch (AuthenticationAttentionException authEx)
{
_logger.Warning("Account {AccountId} requires attention due to authentication issues", options.AccountId);
// Create app notification for authentication attention
_notificationBuilder.CreateAttentionRequiredNotification(authEx.Account);
return MailSynchronizationResult.Failed(authEx);
}
catch (Exception ex)
{
_logger.Error(ex, "Mail synchronization failed for account {AccountId}", options.AccountId);