mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
better XXXs
This commit is contained in:
parent
5fe41e28d7
commit
c62d97ca04
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ module.exports = {
|
||||||
// member tile and re-render it. This is more efficient than every tile
|
// member tile and re-render it. This is more efficient than every tile
|
||||||
// evar attaching their own listener.
|
// evar attaching their own listener.
|
||||||
function updateUserState(event, user) {
|
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.
|
// this should be removed once syjs-28 is resolved in the JS SDK itself.
|
||||||
user.lastPresenceTs = Date.now();
|
user.lastPresenceTs = Date.now();
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ module.exports = {
|
||||||
var all_members = room.currentState.members;
|
var all_members = room.currentState.members;
|
||||||
var all_user_ids = Object.keys(all_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) {
|
all_user_ids.map(function(userId) {
|
||||||
if (all_members[userId].user && !all_members[userId].user.lastPresenceTs) {
|
if (all_members[userId].user && !all_members[userId].user.lastPresenceTs) {
|
||||||
all_members[userId].user.lastPresenceTs = Date.now();
|
all_members[userId].user.lastPresenceTs = Date.now();
|
||||||
|
|
Loading…
Reference in a new issue