1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

incorporate PR feedback

This commit is contained in:
Matthew Hodgson
2016-04-18 14:26:59 +01:00
parent 3af35c8209
commit 0e606c6fe2
2 changed files with 12 additions and 6 deletions

View File

@@ -696,15 +696,12 @@ Room.prototype._addLiveEvent = function(event, duplicateStrategy) {
event.sender.userId, event, "m.read"
), true);
// also, any live events from a user should be taken as implicit
// Any live events from a user could be taken as implicit
// presence information: evidence that they are currently active.
// ...except in a world where we use 'user.currentlyActive' to reduce
// presence spam, this isn't very useful - we'll get a transition when
// they are no longer currently active anyway. so comment it out for now.
// var user = this.currentState.getMember(events[i].sender.userId);
// user.lastActiveAgo = 0;
// user.lastPresenceTs = Date.now();
// they are no longer currently active anyway. So don't bother to
// reset the lastActiveAgo and lastPresenceTs from the RoomState's user.
}
};