Add fixme for avatar optimization

This commit is contained in:
Dan Williams 2007-02-28 11:47:19 -05:00
parent 31fa414e42
commit 748275ca00

View File

@ -237,6 +237,8 @@ class ServerPlugin(gobject.GObject):
print "server does not accept JPEG format avatars." print "server does not accept JPEG format avatars."
return return
# FIXME: check server avatar token and only upload if we know our
# buddy icon has changed
try: try:
img_data = _get_buddy_icon_at_size(min(maxw, 96), min(maxh, 96), maxsize) img_data = _get_buddy_icon_at_size(min(maxw, 96), min(maxh, 96), maxsize)
self._conn[CONN_INTERFACE_AVATARS].SetAvatar(img_data, "image/jpeg") self._conn[CONN_INTERFACE_AVATARS].SetAvatar(img_data, "image/jpeg")