kdeconnect-kde/plugins/sms
Simon Redman a7db3ab5e1 [Desktop] Update conversation list when a new message arrives
Summary:
When a new message is delivered, the conversation list should update by changing the preview text and re-sorting the conversations

Bonus bug discovered and fixed:  previously, when the conversations list was being populated, it made a request for the first message in every conversation. This would be fine if the conversationdbusinterface pulled from local cache. However, this actually triggers a request to the phone for *every* conversation.

This should be handled differently in conversationdbusinterface's requestConversation as well, but that's a project for a later day (TODO comments added)

Test Plan:
 - Launch SMS app
 - Verify conversations list appears
 - Verify lack of massive stream of debug output indicating lots of messages for the wrong conversation are being received
 - Verify that opening a particular conversation shows the messages after a short delay while the backend fetches the content from the phone
 - Verify that receiving a new message into an existing conversation updates the conversation list

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: nicolasfella, apol, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D15608
2018-10-07 21:46:39 -06:00
..
CMakeLists.txt Split SMS and Telephony plugin on desktop 2018-09-10 11:31:05 +02:00
conversationsdbusinterface.cpp [Desktop] Update conversation list when a new message arrives 2018-10-07 21:46:39 -06:00
conversationsdbusinterface.h [Desktop] Update conversation list when a new message arrives 2018-10-07 21:46:39 -06:00
kdeconnect_sms.json SVN_SILENT made messages (.desktop file) - always resolve ours 2018-09-30 05:50:17 +02:00
smsplugin.cpp Correct braces and add contributors 2018-10-06 21:59:15 -06:00
smsplugin.h Correct braces and add contributors 2018-10-06 21:59:15 -06:00