From 4266834052983a788bb12a579da18fd35832d763 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 18 Oct 2020 17:28:21 +0200 Subject: [PATCH] [sms] Restore compatibility with current Android release The current code requires the multitarget support. This is only available in the yet-to-be-released Android version. Fall back to the old style packet format as a quick fix for 20.08 before we can implement a proper solution in master. BUG: 427266 --- plugins/sms/smsplugin.cpp | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/plugins/sms/smsplugin.cpp b/plugins/sms/smsplugin.cpp index 4ef1401db..079fa6367 100644 --- a/plugins/sms/smsplugin.cpp +++ b/plugins/sms/smsplugin.cpp @@ -59,26 +59,15 @@ bool SmsPlugin::receivePacket(const NetworkPacket& np) void SmsPlugin::sendSms(const QDBusVariant& addresses, const QString& messageBody, const qint64 subID) { - QList addressList = ConversationAddress::listfromDBus(addresses); + Q_UNUSED(subID) + const QList addressList = ConversationAddress::listfromDBus(addresses); - QVariantList addressMapList; - for (const ConversationAddress address : addressList) { - QVariantMap addressMap({{QStringLiteral("address"), address.address()}}); - addressMapList.append(addressMap); - qDebug() <