Skip to content

Commit

Permalink
Merge branch 'fix/SDK-4405_pwm-base-before-fetchnodes' into 'release/…
Browse files Browse the repository at this point in the history
…v7.12.0'

SDK-4405.Request password manager base before calling fetch nodes (hotfix release/v7.12.0)

See merge request sdk/sdk!5880
  • Loading branch information
alber2510 committed Oct 4, 2024
2 parents 4f416d5 + 07b2276 commit 82017ec
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/megaclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15016,12 +15016,6 @@ void MegaClient::fetchnodes(bool nocache, bool loadSyncs, bool forceLoadFromServ
app->fetchnodes_result(e);
else if (newNode)
{
reqs.add(new CommandFetchNodes(this,
fetchtag,
nocache,
loadSyncs,
newNode->nodeHandle()));

// Force request attribute, attribute change isn't received,
// it's generated before fetch nodes
reqs.add(new CommandGetUA(this,
Expand All @@ -15032,6 +15026,12 @@ void MegaClient::fetchnodes(bool nocache, bool loadSyncs, bool forceLoadFromServ
nullptr,
nullptr,
nullptr));

reqs.add(new CommandFetchNodes(this,
fetchtag,
nocache,
loadSyncs,
newNode->nodeHandle()));
}
else
{
Expand Down Expand Up @@ -20791,7 +20791,7 @@ std::string MegaClient::getPartialAPs()
std::string ret;
assert(isClientType(ClientType::PASSWORD_MANAGER) || isClientType(ClientType::VPN));

if (isClientType(ClientType::PASSWORD_MANAGER))
if (isClientType(ClientType::PASSWORD_MANAGER) && !getPasswordManagerBase().isUndef())
{
// List of handles to recieve updates from subtree
ret = "&e=" + toNodeHandle(getPasswordManagerBase()) + "&ir=1";
Expand Down

0 comments on commit 82017ec

Please sign in to comment.