[KOE-163] Moved initial send/receive to after account setup, as that caused device id to be unassigned.

This commit is contained in:
Patrick Simpson 2018-02-01 11:24:18 +02:00
parent aec16b0d2d
commit b9804990fe
2 changed files with 5 additions and 4 deletions

View File

@ -113,7 +113,8 @@ namespace Acacia
// Create the watcher
Watcher = new ZPushWatcher(Instance);
OutlookUI.Watcher = Watcher;
if (OutlookUI != null)
OutlookUI.Watcher = Watcher;
// Allow to features to register whatever they need
Features = new List<Feature>();
@ -155,9 +156,6 @@ namespace Acacia
Acacia.Features.DebugSupport.Statistics.StartupTime.Stop();
foreach (Feature feature in Features)
feature.AfterStartup();
// [KOE-148] Initial send receive
Instance.SendReceive();
}
catch (System.Exception e)
{

View File

@ -77,6 +77,9 @@ namespace Acacia.ZPush
Tasks.Task(null, null, "AccountCheckDone", () =>
{
_watcher.OnAccountsScanned();
// [KOE-148] Initial send receive
ThisAddIn.Instance.SendReceive();
});
// Register for account changes