refactor: Add compare_function to buddy_list.

We were passing this in before, but having it as
a data member reinforces the idea that we'll want
this to be a first-class concept in the list, since
we depend on ordering for various things.
This commit is contained in:
Steve Howell
2018-07-16 15:42:20 +00:00
committed by Tim Abbott
parent 45ab5a2f61
commit 5cdce82f7c
3 changed files with 4 additions and 5 deletions

View File

@@ -218,7 +218,6 @@ exports.insert_user_into_list = function (user_id) {
buddy_list.insert_or_move({
key: user_id,
item: info,
compare_function: buddy_data.compare_function,
});
exports.update_scrollbar.users();