1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-19 16:42:09 +03:00

Add RoomState.getLastModifiedTime() and JSDoc

This commit is contained in:
Kegan Dougal
2015-10-13 10:18:01 +01:00
parent 1260dcee76
commit 2bb65fe644
3 changed files with 27 additions and 0 deletions

View File

@@ -78,6 +78,12 @@ User.prototype._updateModifiedTime = function() {
this._modified = Date.now();
};
/**
* Get the timestamp when this User was last updated. This timestamp is
* updated when this User receives a new Presence event which has updated a
* property on this object. It is updated <i>before</i> firing events.
* @return {number} The timestamp
*/
User.prototype.getLastModifiedTime = function() {
return this._modified;
};