Commit 007dc97c authored by Adrien Béraud's avatar Adrien Béraud

account: read correct "active" property

Used to read the "enabled" property instead of "active".

Change-Id: I8d9751f55b5c68ae857a15887536d866c42a0982
parent 1104ae65
......@@ -309,7 +309,7 @@ Account::getVolatileAccountDetails() const
{
return {
{Conf::CONFIG_ACCOUNT_REGISTRATION_STATUS, mapStateNumberToString(registrationState_)},
{DRing::Account::VolatileProperties::ACTIVE, enabled_ ? TRUE_STR : FALSE_STR}
{DRing::Account::VolatileProperties::ACTIVE, active_ ? TRUE_STR : FALSE_STR}
};
}
......
......@@ -2657,10 +2657,6 @@ Manager::setAccountDetails(const std::string& accountID,
account->doRegister();
else
account->doUnregister();
// Update account details to the client side
emitSignal<DRing::ConfigurationSignal::VolatileDetailsChanged>(accountID,
details);
});
}
......@@ -3004,6 +3000,9 @@ Manager::setAccountActive(const std::string& accountID, bool active)
else
acc->doUnregister();
}
emitSignal<DRing::ConfigurationSignal::VolatileDetailsChanged>(
accountID,
acc->getVolatileAccountDetails());
}
std::shared_ptr<AudioLayer>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment