diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-07-12 17:03:23 (GMT) |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-07-12 17:03:23 (GMT) |
commit | c10190d5e82012f4db7619d2ebe421916ca5180f (patch) | |
tree | 5211dbd6febbdb0c5916cb9735abf62a339d450f /src/presenceservice.py | |
parent | 7a1e6f2a80516a495f3ce7aadd195e38dbc2adcb (diff) |
Disable support for avatars - the cache seems to give us huge performance problems, and nobody will have a non-default avatar anyway since there's no UI to change them
Diffstat (limited to 'src/presenceservice.py')
-rw-r--r-- | src/presenceservice.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/presenceservice.py b/src/presenceservice.py index 0dfd7f9..9c57062 100644 --- a/src/presenceservice.py +++ b/src/presenceservice.py @@ -206,7 +206,11 @@ class PresenceService(ExportedGObject): _logger.warning('Connection %s does not support OLPC buddy info', conn.object_path) - if CONN_INTERFACE_AVATARS in conn: + if 1: + # FIXME: Avatars have been disabled for Trial-2 due to performance + # issues in the avatar cache. Revisit this afterwards + pass + elif CONN_INTERFACE_AVATARS in conn: def avatar_retrieved(contact, avatar_token, avatar, mime_type): self._avatar_updated(tp, contact, avatar_token, avatar, mime_type) @@ -311,7 +315,11 @@ class PresenceService(ExportedGObject): for handle in handles: self._queue_contact_online(tp, handle) - if CONN_INTERFACE_AVATARS in conn: + if 1: + # FIXME: Avatars have been disabled for Trial-2 due to performance + # issues in the avatar cache. Revisit this afterwards + pass + elif CONN_INTERFACE_AVATARS in conn: def got_avatar_tokens(tokens): gobject.idle_add(self._run_contacts_online_queue) for contact, token in izip(handles, tokens): |