You've already forked matrix-js-sdk
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:
@@ -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.
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user