Check account notification preferences after the synchronization. (#647)

This commit is contained in:
Burak Kaan Köse
2025-04-26 11:02:41 +02:00
committed by GitHub
parent f37a51b46f
commit c3f47c5fa1
3 changed files with 21 additions and 1 deletions

View File

@@ -615,4 +615,11 @@ public class AccountService : BaseDatabaseService, IAccountService
var account = await GetAccountAsync(accountId);
return account.Preferences.IsFocusedInboxEnabled.GetValueOrDefault();
}
public async Task<bool> IsNotificationsEnabled(Guid accountId)
{
var account = await GetAccountAsync(accountId);
return account?.Preferences?.IsNotificationsEnabled ?? false;
}
}