From 2bce4e4d62ee1254dabd087f9201bf64ba8bfcb0 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 2 Oct 2015 14:37:34 +0100 Subject: [PATCH] Merge c62d97ca04efdfc59b8299319a3b8e4ea13ff6a3 from vector-im The hack is *evil*. Not dirty. --- src/controllers/organisms/MemberList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/organisms/MemberList.js b/src/controllers/organisms/MemberList.js index 3b537f5793..bf61a80048 100644 --- a/src/controllers/organisms/MemberList.js +++ b/src/controllers/organisms/MemberList.js @@ -57,7 +57,7 @@ module.exports = { // member tile and re-render it. This is more efficient than every tile // evar attaching their own listener. function updateUserState(event, user) { - // evil hack to track the age of this presence info. + // XXX: evil hack to track the age of this presence info. // this should be removed once syjs-28 is resolved in the JS SDK itself. user.lastPresenceTs = Date.now(); @@ -145,7 +145,7 @@ module.exports = { var all_members = room.currentState.members; var all_user_ids = Object.keys(all_members); - // XXX: dirty hack until SYJS-28 is fixed + // XXX: evil hack until SYJS-28 is fixed all_user_ids.map(function(userId) { if (all_members[userId].user && !all_members[userId].user.lastPresenceTs) { all_members[userId].user.lastPresenceTs = Date.now();