Merge c62d97ca04 from vector-im

The hack is *evil*. Not dirty.
pull/21833/head
David Baker 2015-10-02 14:37:34 +01:00
parent 54048ee37c
commit 2bce4e4d62
1 changed files with 2 additions and 2 deletions

View File

@ -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();