Merge lp:~rmescandon/telegram-app/reconnect-on-demand into lp:~libqtelegram-team/telegram-app/qml-plugin
Proposed by
Roberto Mier Escandon
Status: | Merged |
---|---|
Merged at revision: | 194 |
Proposed branch: | lp:~rmescandon/telegram-app/reconnect-on-demand |
Merge into: | lp:~libqtelegram-team/telegram-app/qml-plugin |
Diff against target: |
148 lines (+49/-10) 6 files modified
qmlplugin/dbmanager.cpp (+14/-4) qmlplugin/dbmanager.h (+1/-0) qmlplugin/telegramclient.cpp (+10/-1) qmlplugin/telegramclient.h (+2/-3) uitest/ui/DialogsPage.qml (+21/-1) uitest/ui/SignInPage.qml (+1/-1) |
To merge this branch: | bzr merge lp:~rmescandon/telegram-app/reconnect-on-demand |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michał Karnicki (community) | Approve | ||
Review via email:
|
Description of the change
Created two new methods for telegramClient object, to be used from qml:
telegramClient.
telegramClient.
that can be used when application goes to background and comes back to foreground. Sleep invalidates library (closing network connections) instance and closes database connection. Wake method restarts library.
To post a comment you must log in.
in-line comments. +1, but feel free to grab me for comments after fix.