Fix encryption enabling when creating an account on the first start of the application.

This commit is contained in:
Julien Wadel 2022-05-25 17:35:09 +02:00
parent 94fcbdfc66
commit 345492adb2
3 changed files with 5 additions and 3 deletions

View file

@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Order messages from receiving time.
- Fix H264 download URL on Linux.
- Hide Admin status in One-to-one chats.
- Encryption wasn't enabled after creating an account with lime url without having to restart the application.
## 4.4.1 - 2022-04-06

View file

@ -414,11 +414,11 @@ void AssistantModel::setConfigFilename (const QString &configFilename) {
QString configPath = Utils::coreStringToAppString(Paths::getAssistantConfigDirPath()) + configFilename;
qInfo() << QStringLiteral("Set config on assistant: `%1`.").arg(configPath);
CoreManager::getInstance()->getCore()->getConfig()->loadFromXmlFile(
auto core = CoreManager::getInstance()->getCore();
core->getConfig()->loadFromXmlFile(
Utils::appStringToCoreString(configPath)
);
core->enableLimeX3Dh(core->getLimeX3DhServerUrl() != "");
emit configFilenameChanged(configFilename);
}

View file

@ -376,6 +376,7 @@ shared_ptr<linphone::ProxyConfig> AccountSettingsModel::createProxyConfig (const
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
qInfo() << QStringLiteral("Set config on assistant: `%1`.").arg(assistantFile);
core->getConfig()->loadFromXmlFile(Paths::getAssistantConfigDirPath() + assistantFile.toStdString());
core->enableLimeX3Dh(core->getLimeX3DhServerUrl() != "");
return core->createProxyConfig();
}