diff --git a/src/api/account.h b/src/api/account.h index 2c54a7d48acd66e067e0a5d527e422ad6550cfd8..7205e224d23706dba050c2fdc8e42e41296c99d3 100644 --- a/src/api/account.h +++ b/src/api/account.h @@ -113,6 +113,10 @@ struct ConfProperties_t bool accountPublish; int registrationExpire; bool keepAliveEnabled; + QString bootstrapListUrl; + QString dhtProxyListUrl; + QString defaultModerators; + bool localModeratorsEnabled; VectorMapStringString credentials; struct Audio_t { diff --git a/src/newaccountmodel.cpp b/src/newaccountmodel.cpp index 2fdd6613d3a40b73464c37ccec80f8b52387de5e..b65c16b5c5aa92977ac7d5a5351a28b3dfd8fc21 100644 --- a/src/newaccountmodel.cpp +++ b/src/newaccountmodel.cpp @@ -834,6 +834,10 @@ account::Info::fromDetails(const MapStringString& details) confProperties.accountDiscovery = toBool(details[ConfProperties::ACCOUNT_PEER_DISCOVERY]); confProperties.accountPublish = toBool(details[ConfProperties::ACCOUNT_PUBLISH]); confProperties.keepAliveEnabled = toBool(details[ConfProperties::KEEP_ALIVE_ENABLED]); + confProperties.bootstrapListUrl = QString(details[ConfProperties::BOOTSTRAP_LIST_URL]); + confProperties.dhtProxyListUrl = QString(details[ConfProperties::DHT_PROXY_LIST_URL]); + confProperties.defaultModerators = QString(details[ConfProperties::DEFAULT_MODERATORS]); + confProperties.localModeratorsEnabled = toBool(details[ConfProperties::LOCAL_MODERATORS_ENABLED]); // Audio confProperties.Audio.audioPortMax = toInt(details[ConfProperties::Audio::PORT_MAX]); confProperties.Audio.audioPortMin = toInt(details[ConfProperties::Audio::PORT_MIN]); @@ -947,6 +951,10 @@ account::ConfProperties_t::toDetails() const details[ConfProperties::ACCOUNT_PEER_DISCOVERY] = toQString(this->accountDiscovery); details[ConfProperties::ACCOUNT_PUBLISH] = toQString(this->accountPublish); details[ConfProperties::KEEP_ALIVE_ENABLED] = toQString(this->keepAliveEnabled); + details[ConfProperties::BOOTSTRAP_LIST_URL] = this->bootstrapListUrl; + details[ConfProperties::DHT_PROXY_LIST_URL] = this->dhtProxyListUrl; + details[ConfProperties::DEFAULT_MODERATORS] = this->defaultModerators; + details[ConfProperties::LOCAL_MODERATORS_ENABLED] = toQString(this->localModeratorsEnabled); // Audio details[ConfProperties::Audio::PORT_MAX] = toQString(this->Audio.audioPortMax); details[ConfProperties::Audio::PORT_MIN] = toQString(this->Audio.audioPortMin);