Review Request 112524: Fix offline caused by disconnection is saved as last presence

Xuetian Weng wengxt at gmail.com
Wed Sep 4 17:38:05 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112524/
-----------------------------------------------------------

Review request for Telepathy and David Edmundson.


Description
-------

If connection detection is compiled in telepathy-mission-control, it will automatically set account offline thus onRequestedPresenceChanged will be triggered.

As far as I observe, that user requested offline will have connectionStatus still set to online at the time it's triggered if previous status is online.

This patch eliminates the possibility if it's already offline, the lastPresence will not be able to saved as offline, but I think that's something not very important. (manually set offline when it's offline, doesn't make much sense I think).


Diffs
-----

  telepathy-module.cpp 93f2717 

Diff: http://git.reviewboard.kde.org/r/112524/diff/


Testing
-------

disconnect in network manager or error occurs -> last presence not modified
connected and change to offline -> last presence is still remembered.


Thanks,

Xuetian Weng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20130904/85f66409/attachment.html>


More information about the KDE-Telepathy mailing list