Review Request 115609: Load KTp Contacts from a cache

Alexandr Akulich akulichalexander at gmail.com
Mon Feb 10 06:19:38 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115609/#review49404
-----------------------------------------------------------


As I see, there is still same problem: you don't remove contacts that have being in cache when you read it, but known to be not existed any more once account become online.

Steps to reproduce:
1) Become online in KTp (to sync cache)
2) Become offline.
3) Delete contact in any other way (KTp on different PC or just another IM).
4) Start KPeople-powered application. Application have to load deleted contact from cache, because cache is not updated.
5) Become online.
Once you become online, you will receive signal like onAllKnownContactsChanged(KTp::contactManager()->allKnownContacts(), Tp::Contacts()). Note, that there is empty "contactsRemoved" list.
As result, you will have deleted contact listed in KPeople.

- Alexandr Akulich


On Feb. 10, 2014, 3:33 a.m., David Edmundson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/115609/
> -----------------------------------------------------------
> 
> (Updated Feb. 10, 2014, 3:33 a.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Repository: ktp-common-internals
> 
> 
> Description
> -------
> 
> Load KTp Contacts from a cache
> 
> This is so we can display contacts with avatars in kpeople usages
> even if we are offline.
> 
> This data is then updated with data directly from the connection manager
> once it loads/exists.
> 
> 
> Avoid crash if account does not exist
> 
> 
> Diffs
> -----
> 
>   KTp/CMakeLists.txt a3a0120 
>   KTp/global-contact-manager.cpp eec0d4f 
>   KTp/im-persons-data-source.cpp ee67e83 
> 
> Diff: https://git.reviewboard.kde.org/r/115609/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> David Edmundson
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20140210/7bd0c50f/attachment.html>


More information about the KDE-Telepathy mailing list