settings_users: Remove `if` condition for showing current user time stamp.

It seems `presence.presence_info[item.user_id]` works fine for the current
user as well and there is no need to hardcode extra condition for the
current user.
This commit is contained in:
Pragati Agrawal 2019-08-15 15:04:01 +05:30 committed by Tim Abbott
parent 6b5e98d554
commit ba5564fec7
1 changed files with 1 additions and 3 deletions

View File

@ -161,9 +161,7 @@ function populate_users(realm_people_data) {
modifier: function (item) {
var activity_rendered;
var today = new XDate();
if (people.is_current_user(item.email)) {
activity_rendered = timerender.render_date(today, undefined, today);
} else if (presence.presence_info[item.user_id]) {
if (presence.presence_info[item.user_id]) {
// XDate takes number of milliseconds since UTC epoch.
var last_active = presence.presence_info[item.user_id].last_active * 1000;