diff --git a/src/api/account.h b/src/api/account.h index fd10ba82e379fe5b1f7a434bccac3a9226ecc1ac..986f2cb321d4b1b311cd3f4851d88fd30646356b 100644 --- a/src/api/account.h +++ b/src/api/account.h @@ -112,6 +112,7 @@ struct ConfProperties_t bool accountDiscovery; bool accountPublish; int registrationExpire; + bool keepAliveEnabled; VectorMapStringString credentials; struct Audio_t { diff --git a/src/newaccountmodel.cpp b/src/newaccountmodel.cpp index 64b6bf6b826f5c0befce93e6e550ecc49e63cda0..80dd426266ba05fb57b6bbea6a63a81f70fc5ede 100644 --- a/src/newaccountmodel.cpp +++ b/src/newaccountmodel.cpp @@ -833,6 +833,7 @@ account::Info::fromDetails(const MapStringString& details) confProperties.peerDiscovery = toBool(details[ConfProperties::DHT_PEER_DISCOVERY]); confProperties.accountDiscovery = toBool(details[ConfProperties::ACCOUNT_PEER_DISCOVERY]); confProperties.accountPublish = toBool(details[ConfProperties::ACCOUNT_PUBLISH]); + confProperties.keepAliveEnabled = toBool(details[ConfProperties::KEEP_ALIVE_ENABLED]); // Audio confProperties.Audio.audioPortMax = toInt(details[ConfProperties::Audio::PORT_MAX]); confProperties.Audio.audioPortMin = toInt(details[ConfProperties::Audio::PORT_MIN]); @@ -945,6 +946,7 @@ account::ConfProperties_t::toDetails() const details[ConfProperties::DHT_PEER_DISCOVERY] = toQString(this->peerDiscovery); details[ConfProperties::ACCOUNT_PEER_DISCOVERY] = toQString(this->accountDiscovery); details[ConfProperties::ACCOUNT_PUBLISH] = toQString(this->accountPublish); + details[ConfProperties::KEEP_ALIVE_ENABLED] = toQString(this->keepAliveEnabled); // Audio details[ConfProperties::Audio::PORT_MAX] = toQString(this->Audio.audioPortMax); details[ConfProperties::Audio::PORT_MIN] = toQString(this->Audio.audioPortMin);