Skip to content
Snippets Groups Projects
Commit 157a83ad authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 8736e524
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment