[Bug 62378] Offline contact caching

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 16 16:44:13 CET 2013


https://bugs.freedesktop.org/show_bug.cgi?id=62378

Xavier Claessens <xclaesse at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://cgit.collabora.com/g
                   |                            |it/user/xclaesse/telepathy-
                   |                            |glib.git/log/?h=offline-cac
                   |                            |he

--- Comment #1 from Xavier Claessens <xclaesse at gmail.com> ---
Bah, actually implemented it:
http://cgit.collabora.com/git/user/xclaesse/telepathy-glib.git/log/?h=offline-cache

A few things that still need work:

1) cache filename is build with (cm_name, protocol_name, contact-id) tuple. So
if I have 2 jabber accounts xclaesse1 at example.com and xclaesse2 at example.com and
both have smcv at example.com, they will both write into the same cache file. And
if Simon accepted only xclaesse1's subscription request, xclaesse2 could have
less info. If it is xclaesse2's account would write into cache last then we
have less info in the cache that we could. Suggestions to improve this?

2) file read/write is done syncronously with g_file_set/get_contents(). Maybe
everything needs to be made async with GIO.

3) Data is serialized into the file using g_variant_get_data(). Is that format
documented? Does Qt world have a parser for that? Would be preferable if tp-qt
can use the same disk cache.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list