Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Network
KDE Connect
Commits
d36c97a0
Commit
d36c97a0
authored
Sep 12, 2020
by
Simon Redman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace magic number with SMS_REQUEST_PACKET_VERSION
parent
31951d08
Pipeline
#36858
passed with stage
in 10 minutes and 52 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
plugins/sms/smsplugin.cpp
plugins/sms/smsplugin.cpp
+1
-1
plugins/sms/smsplugin.h
plugins/sms/smsplugin.h
+1
-1
No files found.
plugins/sms/smsplugin.cpp
View file @
d36c97a0
...
...
@@ -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
}
});
...
...
plugins/sms/smsplugin.h
View file @
d36c97a0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment