Bug 28301 - accessor for cached avatars on offline accounts
Summary: accessor for cached avatars on offline accounts
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: git master
Hardware: Other All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 06:36 UTC by Simon McVittie
Modified: 2019-12-03 20:03 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Simon McVittie 2010-05-28 06:36:25 UTC
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).
Comment 1 Xavier Claessens 2013-11-15 22:39:27 UTC
Tokens are really implementation details that clients shouldn't have to know about. With bug #55920 the CM will expose only an URI as a contact attribute. With bug #62378 CMs stores contact attributes (including avatar URI) on disk and accessible via TpOfficeContact object.

So I think those 2 bugs together fix this one.
Comment 2 GitLab Migration User 2019-12-03 20:03:00 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-glib/issues/33.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.