Skip to content
Snippets Groups Projects
Commit 2bce4e4d authored by David Baker's avatar David Baker
Browse files

Merge c62d97ca04efdfc59b8299319a3b8e4ea13ff6a3 from vector-im

The hack is *evil*. Not dirty.
parent 54048ee3
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment