[Bug 33410] Do on-disk avatar cache in CM
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon May 14 13:56:37 CEST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=33410
--- Comment #7 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2012-05-14 04:56:37 PDT ---
(In reply to comment #6)
> Eliminating avatar tokens might break MC's ability to set avatars nicely.
It doesn't, if the CM is required to provide a boolean indicator of whether
avatars persist, and MC stores a boolean "avatar-changed-locally" in its
Account data. Algorithm:
* when local user sets avatar, store it, store avatar-changed-locally = TRUE,
and (if online) call SetAvatar on the Connection
* when connecting, if avatar-changed-locally || !avatars-persist, upload the
avatar to the CM with SetAvatar
* when SetAvatar succeeds or fails (for either of those reasons), store
avatar-changed-locally = FALSE
* when connecting, if !avatar-changed-locally && avatars-persist, download our
own avatar from the CM. Store it, and store avatar-changed-locally = FALSE.
* when the CM signals that our own avatar has changed, also download it,
store it, and store avatar-changed-locally = FALSE.
I think that works?
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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