kdeconnect-kde/smsapp
Simon Redman a14b39d541 [SMS App] Make sms app not crash when conversation is selected with no devices connected
Summary: This patch fixes T10184 and stops the SMS app from crashing when a conversation is selected but no devices are connected. It also allows the SMS app to access the cached messages in the ConversationsDbusInterface so the app is still slightly useful even when the device is disconnected.

Test Plan:
- Open sms app
- Open a few conversations
- Disconnect phone (Force close app?)
- Re-open a conversation which was previously opened
  - Verify that the messages appear. It is possible to scroll up to view any older cached messages too!
- Open a conversation which was not opened previously
  - Verify that a single messages is shown (since this was the only one in cache, from populating the list of all conversations)
  - Verify that attempting to scroll this conversation does nothing, but also does not crash the app

Note: Opening the app with no phone connected will cause it to lose its handle on the deviceId, so it can't spawn a new Dbus interface, so it will remain blank and empty. Solving that is a project for another day.

Reviewers: #kde_connect

Reviewed By: #kde_connect

Subscribers: apol, nicolasfella, kdeconnect

Tags: #kde_connect

Maniphest Tasks: T10184

Differential Revision: https://phabricator.kde.org/D17634
2019-01-22 18:55:27 -07:00
..
qml [SMS App] Make sms app not crash when conversation is selected with no devices connected 2019-01-22 18:55:27 -07:00
CMakeLists.txt (WIP) Upgrade Telephony plugin to read SMS history (KDE side) 2018-06-09 13:35:26 -06:00
conversationlistmodel.cpp [SMS App] Make sms app not crash when conversation is selected with no devices connected 2019-01-22 18:55:27 -07:00
conversationlistmodel.h Fix license header for smsapp 2018-10-11 22:52:42 +02:00
conversationmodel.cpp [SMS App] Make requestMoreMessages asynchronous, blocking, and caching 2018-12-12 22:42:56 -07:00
conversationmodel.h Un-break build. Apparently I didn't test as I thought I had. 2018-12-12 22:49:33 -07:00
main.cpp Fix license header for smsapp 2018-10-11 22:52:42 +02:00
org.kde.kdeconnect.sms.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2018-12-02 05:23:51 +01:00
resources.qrc Refine SMS conversation view 2018-08-06 00:09:46 +02:00