Add fixme for avatar optimization
This commit is contained in:
parent
31fa414e42
commit
748275ca00
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user