we can see bigger avatar in pm as we now save vcard too

This commit is contained in:
Yann Leboulanger 2006-03-16 07:51:42 +00:00
parent 8736e52491
commit 157a83ade5
1 changed files with 5 additions and 4 deletions

View File

@ -740,10 +740,11 @@ class ChatControl(ChatControlBase):
'''we enter the eventbox area so we under conditions add a timeout
to show a bigger avatar after 0.5 sec'''
jid = self.contact.jid
real_jid = gajim.get_real_jid_from_fjid(self.account, jid)
if not real_jid: # this can happend if we're in a moderate room
return
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(real_jid)
is_fake = False
if self.type_id == message_control.TYPE_PM:
is_fake = True
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(jid,
is_fake)
if avatar_pixbuf in ('ask', None):
return
avatar_w = avatar_pixbuf.get_width()