Mon, 25 Jun 2007 02:56:32 +0000
this fixes a bug where:
Resource A comes online, as available
Resource B comes online, as available
Resource A goes away
Resource B goes away, with a lower priority than A
Buddy is still shown as available
| libpurple/protocols/jabber/presence.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/jabber/presence.c Sun Jun 24 17:52:52 2007 +0000 +++ b/libpurple/protocols/jabber/presence.c Mon Jun 25 02:56:32 2007 +0000 @@ -565,9 +565,7 @@ } if((found_jbr = jabber_buddy_find_resource(jb, NULL))) { - if(!jbr || jbr == found_jbr) { - purple_prpl_got_user_status(js->gc->account, buddy_name, jabber_buddy_state_get_status_id(state), "priority", found_jbr->priority, found_jbr->status ? "message" : NULL, found_jbr->status, NULL); - } + purple_prpl_got_user_status(js->gc->account, buddy_name, jabber_buddy_state_get_status_id(state), "priority", found_jbr->priority, found_jbr->status ? "message" : NULL, found_jbr->status, NULL); } else { purple_prpl_got_user_status(js->gc->account, buddy_name, "offline", status ? "message" : NULL, status, NULL); }