accessor for cached avatars on offline accounts
Submitted by Simon McVittie
Assigned to Telepathy bugs list
Description
From Bug #27269:
The avatar token doesn't seem very useful when you can only get a cached avatar via a TpContact - we'll probably have to add API to telepathy-glib to see whether a cached avatar is still available, and if so, return them. This will require the connection manager name and the protocol name (both derivable from the TpAccount name), and can't be done for non-Telepathy avatars.
Proposed API: one or both of
GFile *tp_account_get_cached_avatar (TpAccount *account,
const gchar *avatar_token);
GFile *tp_contact_get_cached_avatar (const gchar *cm_name,
const gchar *protocol_name,
const gchar *avatar_token);
(either would return NULL if not found).
Version: git master