Mercurial > pidgin.yaz
diff pidgin/gtkconv.c @ 24537:a05e9cf91efb
Do not mistakenly use the preference to hide new IMs for persistent
chats. Fixes #5312.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 05 Dec 2008 23:28:47 +0000 |
parents | cff5d920b87f |
children | 33ceb2b708cf 65cfc59858cf 25e2ab1fff1d 42c88ceabf3f a0fd6a41d127 |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Thu Dec 04 04:15:28 2008 +0000 +++ b/pidgin/gtkconv.c Fri Dec 05 23:28:47 2008 +0000 @@ -7282,18 +7282,14 @@ if(purple_status_is_available(oldstatus) || !purple_status_is_available(newstatus)) return; - while ((l = hidden_convwin->gtkconvs) != NULL) - { + for (l = hidden_convwin->gtkconvs; l; ) { gtkconv = l->data; + l = l->next; conv = gtkconv->active_conv; - - while(l && !purple_status_is_available( - purple_account_get_active_status( - purple_conversation_get_account(conv)))) - l = l->next; - if (!l) - break; + if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT || + account != purple_conversation_get_account(conv)) + continue; pidgin_conv_attach_to_conversation(conv);