Removing server init from the app init. Making sure server connection is established before doing a request. Handling Connecting state.
This commit is contained in:
@@ -845,9 +845,6 @@ namespace Wino.Mail.ViewModels
|
||||
trackingSynchronizationId = null;
|
||||
completedTrackingSynchronizationCount = 0;
|
||||
|
||||
// Check whether the account synchronizer that this folder belongs to is already in synchronization.
|
||||
await CheckIfAccountIsSynchronizingAsync();
|
||||
|
||||
// Notify change for archive-unarchive app bar button.
|
||||
OnPropertyChanged(nameof(IsArchiveSpecialFolder));
|
||||
|
||||
@@ -865,6 +862,9 @@ namespace Wino.Mail.ViewModels
|
||||
await Task.Delay(100);
|
||||
}
|
||||
|
||||
// Check whether the account synchronizer that this folder belongs to is already in synchronization.
|
||||
await CheckIfAccountIsSynchronizingAsync();
|
||||
|
||||
// Let awaiters know about the completion of mail init.
|
||||
message.FolderInitLoadAwaitTask?.TrySetResult(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user