Check account notification preferences after the synchronization. (#647)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user