Add capability-first account and calendar setup flow

This commit is contained in:
Burak Kaan Köse
2026-04-20 19:38:30 +02:00
parent 54148716bb
commit d85812ed7b
41 changed files with 1369 additions and 333 deletions
+3 -3
View File
@@ -211,9 +211,6 @@ public class AccountService : BaseDatabaseService, IAccountService
Guard.IsNotNull(token);
// Enable calendar access since new token includes calendar scopes
account.IsCalendarAccessGranted = true;
await UpdateAccountAsync(account);
}
@@ -270,6 +267,9 @@ public class AccountService : BaseDatabaseService, IAccountService
public async Task CreateRootAliasAsync(Guid accountId, string address)
{
if (string.IsNullOrWhiteSpace(address))
return;
var rootAlias = new MailAccountAlias()
{
AccountId = accountId,