kdeconnect-kde/plugins/telephony
Simon Redman e5b6c147d8 Sort Cached Messages
Summary: Previously, incoming messages were appened to a QList. This list was accidentally sorted because that's how Android returned them, but new messages were appended to the wrong end of the list. This patch specifically and intentionally sorts messages so new ones become visible

Test Plan:
- Open SMS GUI, verify that the most-recent messages are shown
- Either send or recieve an SMS
- Wait about 5s (I do not know why this is necessary. Probably some Android weirdness)
- De-select the current conversation, then re-select it
  - TODO: Make the app automatically respond to new messages
- The newly sent or recieved message should be shown in the most-recent position

Reviewers: apol

Reviewed By: apol

Subscribers: apol, nicolasfella, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D15108
2018-09-08 12:52:49 -06:00
..
CMakeLists.txt (WIP) Upgrade Telephony plugin to read SMS history (KDE side) 2018-06-09 13:35:26 -06:00
conversationsdbusinterface.cpp Sort Cached Messages 2018-09-08 12:52:49 -06:00
conversationsdbusinterface.h Sort Cached Messages 2018-09-08 12:52:49 -06:00
kdeconnect_telephony.json SVN_SILENT made messages (.desktop file) - always resolve ours 2018-08-27 05:46:19 +02:00
README Move the plugins into a different top-ĺevel directory 2014-06-14 16:34:11 +02:00
telephonyplugin.cpp (WIP) Upgrade Telephony plugin to read SMS history (KDE side) 2018-06-09 13:35:26 -06:00
telephonyplugin.h (WIP) Upgrade Telephony plugin to read SMS history (KDE side) 2018-06-09 13:35:26 -06:00

This plugin will display a notification each time a package with type
"kdeconnect.telephony" is received. The type of notification will change
depending on the contents of the field "event" (string).

Valid contents for "event" are: "ringing", "talking", "missedCall" and "sms".
Note that "talking" is just ignored in this implementation, while the others
will display a system notification.

If the incoming package contains a "phoneNumber" string field, the notification
will also display it. Note that "phoneNumber" can be a contact name instead
of an actual phone number.

If the incoming package contains "isCancel" set to true, the package is ignored.