Commit c178478b authored by Bhushan Shah's avatar Bhushan Shah 📱

Merge branch 'Plasma/5.18'

parents ac445906 cb4149cf
......@@ -54,14 +54,9 @@ DialerUtils::~DialerUtils()
void DialerUtils::dial(const QString &number)
using namespace ::i18n::phonenumbers;
PhoneNumberUtil* util = PhoneNumberUtil::GetInstance();
string stdnumber = number.toUtf8().constData();
// FIXME: this should be replaced by kpeople thing
qDebug() << "Starting call...";
Tp::PendingChannelRequest *pendingChannel = m_simAccount->ensureAudioCall(QString::fromStdString(stdnumber));
Tp::PendingChannelRequest *pendingChannel = m_simAccount->ensureAudioCall(number);
connect(pendingChannel, &Tp::PendingChannelRequest::finished, pendingChannel, [=](){
if (pendingChannel->isError()) {
qWarning() << "Error when requesting channel" << pendingChannel->errorMessage();
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