From 0f32462e260e1b75fcb54ea3eb434cc085517815 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Mon, 2 Nov 2020 10:32:18 +0100 Subject: [PATCH] Revert "[sms] Restore compatibility with current Android release" R A new Android app was released This reverts commit 4266834052983a788bb12a579da18fd35832d763. --- plugins/sms/smsplugin.cpp | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) 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() <