Skip to content
Snippets Groups Projects
Commit 007dc97c authored by Adrien Béraud's avatar Adrien Béraud
Browse files

account: read correct "active" property

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

Change-Id: I8d9751f55b5c68ae857a15887536d866c42a0982
parent 1104ae65
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment