comparison mcabber/src/roster.c @ 1010:54405d09b15a

Add a call to buddylist_build() Sometimes buddylist_build() isn't called when a line is added to a hidden buffer (for ex. when receiving an IQ:version). Dealing with this in roster_msg_setflag() should fix it, and may save us a few useless calls...
author Mikael Berthe <mikael@lilotux.net>
date Sun, 12 Nov 2006 12:12:38 +0100
parents f47e312560af
children ebbde723614b
comparison
equal deleted inserted replaced
1009:c112423ac012 1010:54405d09b15a
613 roster_grp->flags |= ROSTER_FLAG_MSG; 613 roster_grp->flags |= ROSTER_FLAG_MSG;
614 // Actually the "else" part is useless, because the group 614 // Actually the "else" part is useless, because the group
615 // ROSTER_FLAG_MSG should already be set... 615 // ROSTER_FLAG_MSG should already be set...
616 } 616 }
617 617
618 if (buddylist && new_roster_item) 618 if (buddylist && (new_roster_item || !g_list_find(buddylist, roster_usr)))
619 buddylist_build(); 619 buddylist_build();
620 } 620 }
621 621
622 const char *roster_getname(const char *jid) 622 const char *roster_getname(const char *jid)
623 { 623 {