Skip to content
Snippets Groups Projects
Commit 8f282fe1 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

newaccountmodel: remove "ring:" prefix introduced by prepend function

Gitlab: #446
Change-Id: If2b685e1c8ed26d564ac0604f4d5b9575499db11
parent deb9e5dd
No related branches found
No related tags found
No related merge requests found
......@@ -239,8 +239,7 @@ NewAccountModel::setAccountConfig(const QString& accountId,
? QString(ProtocolNames::RING)
: QString(ProtocolNames::SIP);
if (accountInfo.profileInfo.type == profile::Type::RING) {
details[ConfProperties::USERNAME] = accountInfo.profileInfo.uri.prepend(
(accountInfo.profileInfo.type == profile::Type::RING) ? "ring:" : "");
details[ConfProperties::USERNAME] = accountInfo.profileInfo.uri;
} else if (accountInfo.profileInfo.type == profile::Type::SIP) {
VectorMapStringString finalCred;
......@@ -735,7 +734,9 @@ NewAccountModelPimpl::addToAccounts(const QString& accountId, std::shared_ptr<Da
// Init models for this account
newAccInfo.accountModel = &linked;
newAccInfo.callModel = std::make_unique<NewCallModel>(newAccInfo, callbacksHandler, behaviorController);
newAccInfo.callModel = std::make_unique<NewCallModel>(newAccInfo,
callbacksHandler,
behaviorController);
newAccInfo.contactModel = std::make_unique<ContactModel>(newAccInfo,
*db,
callbacksHandler,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment