mirror of
https://github.com/Kopano-dev/kopano-ol-extension.git
synced 2023-10-10 13:37:40 +02:00
[KOE-163] Moved initial send/receive to after account setup, as that caused device id to be unassigned.
This commit is contained in:
parent
aec16b0d2d
commit
b9804990fe
@ -113,7 +113,8 @@ namespace Acacia
|
|||||||
|
|
||||||
// Create the watcher
|
// Create the watcher
|
||||||
Watcher = new ZPushWatcher(Instance);
|
Watcher = new ZPushWatcher(Instance);
|
||||||
OutlookUI.Watcher = Watcher;
|
if (OutlookUI != null)
|
||||||
|
OutlookUI.Watcher = Watcher;
|
||||||
|
|
||||||
// Allow to features to register whatever they need
|
// Allow to features to register whatever they need
|
||||||
Features = new List<Feature>();
|
Features = new List<Feature>();
|
||||||
@ -155,9 +156,6 @@ namespace Acacia
|
|||||||
Acacia.Features.DebugSupport.Statistics.StartupTime.Stop();
|
Acacia.Features.DebugSupport.Statistics.StartupTime.Stop();
|
||||||
foreach (Feature feature in Features)
|
foreach (Feature feature in Features)
|
||||||
feature.AfterStartup();
|
feature.AfterStartup();
|
||||||
|
|
||||||
// [KOE-148] Initial send receive
|
|
||||||
Instance.SendReceive();
|
|
||||||
}
|
}
|
||||||
catch (System.Exception e)
|
catch (System.Exception e)
|
||||||
{
|
{
|
||||||
|
@ -77,6 +77,9 @@ namespace Acacia.ZPush
|
|||||||
Tasks.Task(null, null, "AccountCheckDone", () =>
|
Tasks.Task(null, null, "AccountCheckDone", () =>
|
||||||
{
|
{
|
||||||
_watcher.OnAccountsScanned();
|
_watcher.OnAccountsScanned();
|
||||||
|
|
||||||
|
// [KOE-148] Initial send receive
|
||||||
|
ThisAddIn.Instance.SendReceive();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Register for account changes
|
// Register for account changes
|
||||||
|
Loading…
Reference in New Issue
Block a user