Commit d36c97a0 authored by Simon Redman's avatar Simon Redman

Replace magic number with SMS_REQUEST_PACKET_VERSION

parent 31951d08
Pipeline #36858 passed with stage
in 10 minutes and 52 seconds
......@@ -61,7 +61,7 @@ void SmsPlugin::sendSms(const QVariantList& addresses, const QString& textMessag
}
QVariantMap packetMap({
{QStringLiteral("version"), 2},
{QStringLiteral("version"), SMS_REQUEST_PACKET_VERSION},
{QStringLiteral("addresses"), addressMapList}
});
......
......@@ -93,7 +93,7 @@
*
*/
#define PACKET_TYPE_SMS_REQUEST QStringLiteral("kdeconnect.sms.request")
#define SMS_REQUEST_PACKET_VERSION 2 // We *send* packets of this version
/**
* Packet sent to request the most-recent message in each conversations on the device
......
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