comparison mcabber/mcabber/roster.c @ 2312:def5f64c253d

Rebuild the buddylist after disconnect/before buddylist search
author franky
date Sun, 19 Feb 2017 18:55:12 +0100
parents 038b864b44c6
children 4ddd6f5c3ffc
comparison
equal deleted inserted replaced
2311:962c98e4864d 2312:def5f64c253d
436 if (onserver == 1) 436 if (onserver == 1)
437 roster_usr->on_server = TRUE; 437 roster_usr->on_server = TRUE;
438 // #4 Insert node (sorted) 438 // #4 Insert node (sorted)
439 my_group->list = g_slist_insert_sorted(my_group->list, roster_usr, 439 my_group->list = g_slist_insert_sorted(my_group->list, roster_usr,
440 (GCompareFunc)&roster_compare_name); 440 (GCompareFunc)&roster_compare_name);
441 buddylist_defer_build();
441 return roster_find(jid, jidsearch, type); 442 return roster_find(jid, jidsearch, type);
442 } 443 }
443 444
444 // Removes user (jid) from roster, frees allocated memory 445 // Removes user (jid) from roster, frees allocated memory
445 void roster_del_user(const char *jid) 446 void roster_del_user(const char *jid)