From 72e7cb64238aca910417858fab1a0161e0e88167 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 16 Mar 2006 17:47:31 +0000 Subject: [PATCH] fix TB: get the avatar from folder when it's a pm --- src/chat_control.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/chat_control.py b/src/chat_control.py index 0d3a91861..252fb95ff 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1473,7 +1473,11 @@ class ChatControl(ChatControlBase): pixbuf.fill(0xffffff00) # RGBA image.queue_draw() - 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(real_jid, + is_fake) screen_w = gtk.gdk.screen_width() screen_h = gtk.gdk.screen_height() avatar_w = avatar_pixbuf.get_width()