Mercurial > pidgin
changeset 24591: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 | c457c635eb8f |
children | 104f6f755c7e |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 5 insertions(+), 9 deletions(-) [+] |
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);