# HG changeset patch # User Sadrul Habib Chowdhury # Date 1199499390 0 # Node ID cca516eb76101a2821723cce4ae8fc9cacda3fdf # Parent d309d662a32ce1308046fc658dece2035d877bdc Show the emblem in conversation infopane correctly for chats. diff -r d309d662a32c -r cca516eb7610 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Fri Jan 04 22:57:51 2008 +0000 +++ b/pidgin/gtkconv.c Sat Jan 05 02:16:30 2008 +0000 @@ -2420,7 +2420,6 @@ { PidginConversation *gtkconv; PidginWindow *win; - PurpleBuddy *b; GList *l; GdkPixbuf *status = NULL; GdkPixbuf *infopane_status = NULL; @@ -2433,13 +2432,18 @@ if (conv != gtkconv->active_conv) return; - status = pidgin_conv_get_tab_icon(conv, TRUE); infopane_status = pidgin_conv_get_tab_icon(conv, FALSE); - b = purple_find_buddy(conv->account, conv->name); - if (b) - emblem = pidgin_blist_get_emblem((PurpleBlistNode*)b); + if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM) { + PurpleBuddy *b = purple_find_buddy(conv->account, conv->name); + if (b) + emblem = pidgin_blist_get_emblem((PurpleBlistNode*)b); + } else { + PurpleChat *c = purple_blist_find_chat(conv->account, conv->name); + if (c) + emblem = pidgin_blist_get_emblem((PurpleBlistNode*)c); + } g_return_if_fail(status != NULL);