Review Request 122444: Improve the contacts cache for KPeople
Martin Klapetek
martin.klapetek at gmail.com
Sun Feb 8 20:19:15 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122444/
-----------------------------------------------------------
(Updated Feb. 8, 2015, 8:19 p.m.)
Status
------
This change has been marked as submitted.
Review request for Telepathy.
Repository: ktp-common-internals
Description
-------
Currently when account goes online from offline, the contact cache is completely nuked and recreated. This is fast but has one drawback - it will store avatars only of those contacts that are online in the moment of connection, so basically with each connection the available avatars change a bit. To compensate, we've been storing the avatar token in a config file, but that's used only for KTp::Contact.
Now with KPeople, if the account is offline, we don't have access to KTp::Contact and have avatars only from the last cache recreation (that means that when you go offline, half of your contacts suddenly loose avatars). This patch now reloads the cache for the account that went offline (second part of this patch is that I've modified the cache to update the database on avatar data change, so for each contact coming online the avatar gets stored in the cache). But as the contact may have not came online during the last connection, it now also loads the avatars from the config file if the database has nothing (this matches the KTp::Contact behavior).
Diffs
-----
kpeople/datasourceplugin/CMakeLists.txt 8068977
kpeople/datasourceplugin/im-persons-data-source.cpp f0868b8
Diff: https://git.reviewboard.kde.org/r/122444/diff/
Testing
-------
I go offline and all my contacts keep their avatars.
Thanks,
Martin Klapetek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20150208/43de265a/attachment-0001.html>
More information about the KDE-Telepathy
mailing list