diff --git a/src/newaccountmodel.cpp b/src/newaccountmodel.cpp index 9a011a904177cb08cfb816dd2d84475e07789dd0..64b6bf6b826f5c0befce93e6e550ecc49e63cda0 100644 --- a/src/newaccountmodel.cpp +++ b/src/newaccountmodel.cpp @@ -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,