we can see bigger avatar in pm as we now save vcard too
This commit is contained in:
parent
8736e52491
commit
157a83ade5
1 changed files with 5 additions and 4 deletions
|
@ -740,10 +740,11 @@ class ChatControl(ChatControlBase):
|
||||||
'''we enter the eventbox area so we under conditions add a timeout
|
'''we enter the eventbox area so we under conditions add a timeout
|
||||||
to show a bigger avatar after 0.5 sec'''
|
to show a bigger avatar after 0.5 sec'''
|
||||||
jid = self.contact.jid
|
jid = self.contact.jid
|
||||||
real_jid = gajim.get_real_jid_from_fjid(self.account, jid)
|
is_fake = False
|
||||||
if not real_jid: # this can happend if we're in a moderate room
|
if self.type_id == message_control.TYPE_PM:
|
||||||
return
|
is_fake = True
|
||||||
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(real_jid)
|
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(jid,
|
||||||
|
is_fake)
|
||||||
if avatar_pixbuf in ('ask', None):
|
if avatar_pixbuf in ('ask', None):
|
||||||
return
|
return
|
||||||
avatar_w = avatar_pixbuf.get_width()
|
avatar_w = avatar_pixbuf.get_width()
|
||||||
|
|
Loading…
Add table
Reference in a new issue