Commit abd29576 authored by Thomas's avatar Thomas

OUT-795: Disable all sync channels on startup and enable for individual accounts

parent 0b3523c7
...@@ -718,6 +718,9 @@ namespace pEp ...@@ -718,6 +718,9 @@ namespace pEp
{ {
Log.Warning("RegisterMyself: Engine returned exception, " + ex.ToString()); Log.Warning("RegisterMyself: Engine returned exception, " + ex.ToString());
} }
// Enable Sync if necessary
acctSettings.SignalSyncSettingsToEngine();
} }
else else
{ {
...@@ -2243,6 +2246,9 @@ namespace pEp ...@@ -2243,6 +2246,9 @@ namespace pEp
Log.Info("ThisAddIn_Startup: Connect Events"); Log.Info("ThisAddIn_Startup: Connect Events");
Globals.ConnectEvents(true); Globals.ConnectEvents(true);
// Disable Sync for all identities (will be enabled later per account)
AdapterExtensions.ExecuteWithPassphraseCheck(ThisAddIn.PEPEngine.DisableAllSyncChannels);
/* Sync accounts list. This must be done before RegisterMyself() /* Sync accounts list. This must be done before RegisterMyself()
* to be able to set the not for sync flag if necessary. * to be able to set the not for sync flag if necessary.
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment