user status: Surface status in the buddy list.

When you hover over a user that has set a user
status, we now show something like "out to lunch."

You can test this in the console by doing:

    user_status.server_update({status_text: 'out to lunch'})

And then hover over your name in the buddy list.
This commit is contained in:
Steve Howell
2019-01-25 15:40:18 +00:00
committed by Tim Abbott
parent 6de77d30eb
commit 17c906d6bb
4 changed files with 35 additions and 2 deletions

View File

@@ -91,6 +91,15 @@ run_test('buddy_status', () => {
assert.equal(buddy_data.buddy_status(me.user_id), 'active');
});
run_test('user_title', () => {
assert.equal(buddy_data.user_title(me.user_id), 'Human Myself is active');
user_status.set_status_text({
user_id: me.user_id,
status_text: 'out to lunch',
});
assert.equal(buddy_data.user_title(me.user_id), 'out to lunch');
});
run_test('simple search', () => {
const user_ids = buddy_data.get_filtered_and_sorted_user_ids('sel');