diff --git a/plugins/sms/smsplugin.cpp b/plugins/sms/smsplugin.cpp index 079fa6367..4ef1401db 100644 --- a/plugins/sms/smsplugin.cpp +++ b/plugins/sms/smsplugin.cpp @@ -59,15 +59,26 @@ bool SmsPlugin::receivePacket(const NetworkPacket& np) void SmsPlugin::sendSms(const QDBusVariant& addresses, const QString& messageBody, const qint64 subID) { - Q_UNUSED(subID) - const QList addressList = ConversationAddress::listfromDBus(addresses); + QList addressList = ConversationAddress::listfromDBus(addresses); - if (addressList.isEmpty()) { - qCDebug(KDECONNECT_PLUGIN_SMS) << "Empty address list"; - return; + QVariantList addressMapList; + for (const ConversationAddress address : addressList) { + QVariantMap addressMap({{QStringLiteral("address"), address.address()}}); + addressMapList.append(addressMap); + qDebug() <