From 892b4b5db2a0e7ab0931c4e8d1c05ef3fb745a4e Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Tue, 14 Jan 2014 10:43:08 -0500 Subject: [PATCH] Remove user from his/her own buddy list. (imported from commit 388a95b8f1b9c2a7622e1e083d3601c4015682e7) --- static/js/activity.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/static/js/activity.js b/static/js/activity.js index 3f45b0887a..6217035474 100644 --- a/static/js/activity.js +++ b/static/js/activity.js @@ -197,14 +197,9 @@ function actually_update_users() { return unread.num_unread_for_person(email); } - var my_info = { - name: page_params.fullname, - email: page_params.email, - num_unread: get_num_unread(page_params.email), - type: (activity.has_focus) ? activity.ACTIVE : activity.IDLE, - type_desc: presence_descriptions.active, - my_fullname: true - }; + // Note that we do not include ourselves in the user list any more. + // If you want to figure out how to get details for "me", then revert + // the commit that added this comment. function info_for(email) { var presence = presence_info[email]; @@ -221,7 +216,7 @@ function actually_update_users() { return people_dict.has(email); }); - var user_info = [my_info].concat(_.map(user_emails, info_for)); + var user_info = _.map(user_emails, info_for); $('#user_presences').html(templates.render('user_presence_rows', {users: user_info}));