Skip to content

Commit

Permalink
fix: 解决文件夹问题(但只有一半), 属实难绷
Browse files Browse the repository at this point in the history
  • Loading branch information
SlimeNull committed Mar 24, 2024
1 parent 6560bd8 commit cc76960
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/MicaApps.Mail.UWP/Services/OutlookService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ private async Task DefaultFolderTaskAsync(string name,
public override async IAsyncEnumerable<Models.MailFolder> GetMailSuperFoldersAsync(
[EnumeratorCancellation] CancellationToken CancelToken = default)
{
//
await LoadSuperMailFolderList(CancelToken);

var folderData = _liteDatabaseService.MailFolders
.Query()
.Where((x) => x.Type == MailFolderType.Inbox)
Expand All @@ -210,8 +213,6 @@ await Task.WhenAll(DefaultFolderTaskAsync("inbox", CancelToken),
MailFoldersTree.Add(mailFolderData);
yield return mailFolderData;
}

await LoadSuperMailFolderList(CancelToken);
}

private async Task LoadSuperMailFolderList(CancellationToken CancelToken)
Expand Down

0 comments on commit cc76960

Please sign in to comment.