diff --git a/coreapi/friendlist.c b/coreapi/friendlist.c index edc559dcf..b39cecfb8 100644 --- a/coreapi/friendlist.c +++ b/coreapi/friendlist.c @@ -538,7 +538,7 @@ LinphoneFriendListStatus linphone_friend_list_import_friend(LinphoneFriendList * } lf->friend_list = list; lf->lc = list->lc; - list->friends = bctbx_list_append(list->friends, linphone_friend_ref(lf)); + list->friends = bctbx_list_prepend(list->friends, linphone_friend_ref(lf)); if (lf->refkey) { bctbx_pair_t *pair = (bctbx_pair_t*) bctbx_pair_cchar_new(lf->refkey, linphone_friend_ref(lf)); bctbx_map_cchar_insert_and_delete(list->friends_map, pair);