kdeconnect-kde/smsapp
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
..
qml [Desktop] Update conversation list when a new message arrives 2018-10-07 21:46:39 -06:00
CMakeLists.txt (WIP) Upgrade Telephony plugin to read SMS history (KDE side) 2018-06-09 13:35:26 -06:00
conversationlistmodel.cpp [Desktop] Update conversation list when a new message arrives 2018-10-07 21:46:39 -06:00
conversationlistmodel.h [Desktop] Update conversation list when a new message arrives 2018-10-07 21:46:39 -06:00
conversationmodel.cpp [Desktop] Update conversation list when a new message arrives 2018-10-07 21:46:39 -06:00
conversationmodel.h Correct braces and add contributors 2018-10-06 21:59:15 -06:00
main.cpp Correct braces and add contributors 2018-10-06 21:59:15 -06:00
org.kde.kdeconnect.sms.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2018-08-18 05:41:47 +02:00
resources.qrc Refine SMS conversation view 2018-08-06 00:09:46 +02:00