Skip to content
Snippets Groups Projects
Unverified Commit 5bfc9a5e authored by Sébastien Blin's avatar Sébastien Blin
Browse files

migration: do not overwrite settings during migration

Change-Id: I9c0fbf2afe1fff0d3c5816203824dd7d004d85c6
parent 9e6a68f8
No related branches found
No related tags found
No related merge requests found
......@@ -286,6 +286,8 @@ ArchiveAccountManager::migrateAccount(AuthContext& ctx)
return;
}
updateArchive(archive);
if (updateCertificates(archive, ctx.credentials->updateIdentity)) {
onArchiveLoaded(ctx, std::move(archive));
} else
......
......@@ -995,11 +995,11 @@ JamiAccount::loadAccount(const std::string& archive_password, const std::string&
ringDeviceName_ = info.deviceId.substr(8);
auto nameServerIt = config.find(DRing::Account::ConfProperties::RingNS::URI);
if (nameServerIt != config.end()) {
if (nameServerIt != config.end() && !nameServerIt->second.empty()) {
nameServer_ = nameServerIt->second;
}
auto displayNameIt = config.find(DRing::Account::ConfProperties::DISPLAYNAME);
if (displayNameIt != config.end()) {
if (displayNameIt != config.end() && !displayNameIt->second.empty()) {
displayName_ = displayNameIt->second;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment