diff --git a/src/listeners.cpp b/src/listeners.cpp index 010f3b88..f3cb72e6 100644 --- a/src/listeners.cpp +++ b/src/listeners.cpp @@ -458,7 +458,7 @@ void MegaCmdMegaListener::onSyncAdded(MegaApi *api, MegaSync *sync) if (!ConfigurationManager::getConfigurationValue("firstSyncConfigured", false)) { api->sendEvent(MCMD_EVENT_FIRST_CONFIGURED_SYNC_ID, - MCMD_EVENT_FIRST_CONFIGURED_SYNC_MESSAGE); + MCMD_EVENT_FIRST_CONFIGURED_SYNC_MESSAGE, false/*JourneyId*/, nullptr/*viewId*/); ConfigurationManager::savePropertyValue("firstSyncConfigured", true); } } diff --git a/src/megacmd.cpp b/src/megacmd.cpp index 1e3b92b0..4b9db951 100644 --- a/src/megacmd.cpp +++ b/src/megacmd.cpp @@ -3499,7 +3499,7 @@ bool executeUpdater(bool *restartRequired, bool doNotInstall = false) if (*restartRequired && api) { std::unique_ptr megaCmdListener{new MegaCmdListener(api, NULL)}; - api->sendEvent(MCMD_EVENT_UPDATE_RESTART_ID,MCMD_EVENT_UPDATE_RESTART_MESSAGE, megaCmdListener.get()); + api->sendEvent(MCMD_EVENT_UPDATE_RESTART_ID,MCMD_EVENT_UPDATE_RESTART_MESSAGE, false/*JourneyId*/, nullptr/*viewId*/, megaCmdListener.get()); megaCmdListener->wait(); } @@ -4112,7 +4112,7 @@ void* checkForUpdates(void *param) if (stopcheckingforUpdaters) break; std::unique_ptr megaCmdListener{new MegaCmdListener(api, NULL)}; - api->sendEvent(MCMD_EVENT_UPDATE_START_ID,MCMD_EVENT_UPDATE_START_MESSAGE, megaCmdListener.get()); + api->sendEvent(MCMD_EVENT_UPDATE_START_ID,MCMD_EVENT_UPDATE_START_MESSAGE, false/*JourneyId*/, nullptr/*viewId*/, megaCmdListener.get()); megaCmdListener->wait(); broadcastMessage(" Executing update !"); @@ -5191,7 +5191,7 @@ int main(int argc, char* argv[]) if (ConfigurationManager::getHasBeenUpdated()) { - api->sendEvent(MCMD_EVENT_UPDATE_ID,MCMD_EVENT_UPDATE_MESSAGE); + api->sendEvent(MCMD_EVENT_UPDATE_ID,MCMD_EVENT_UPDATE_MESSAGE, false/*JourneyId*/, nullptr/*viewId*/); stringstream ss; ss << "MEGAcmd has been updated to version " << MEGACMD_MAJOR_VERSION << "." << MEGACMD_MINOR_VERSION << "." << MEGACMD_MICRO_VERSION << "." << MEGACMD_BUILD_ID << " - code " << MEGACMD_CODE_VERSION << endl; broadcastMessage(ss.str(), true); diff --git a/src/megacmdexecuter.cpp b/src/megacmdexecuter.cpp index 1b3bd921..7e3cac44 100644 --- a/src/megacmdexecuter.cpp +++ b/src/megacmdexecuter.cpp @@ -2514,7 +2514,7 @@ bool MegaCmdExecuter::actUponFetchNodes(MegaApi *api, SynchronousRequestListener LOG_err << "Getting up to date with last changes in your account is taking more than expected. MEGAcmd will continue. " "Caveat: you may be interacting with an out-dated version of your account."; api->sendEvent(MCMD_EVENT_WAITED_TOO_LONG_FOR_NODES_CURRENT, - MCMD_EVENT_WAITED_TOO_LONG_FOR_NODES_CURRENT_MESSAGE); + MCMD_EVENT_WAITED_TOO_LONG_FOR_NODES_CURRENT_MESSAGE, false/*JourneyId*/, nullptr/*viewId*/); discardGet = true; }