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

Move getFriendlyRoomName to Room. Add recalculate() function to cache info.

This commit is contained in:
Kegan Dougal
2015-06-08 16:10:23 +01:00
parent 9fa7fa0487
commit 2d00998b61
5 changed files with 89 additions and 67 deletions

View File

@@ -25,6 +25,14 @@ function RoomState(roomId) {
this.paginationToken = null;
}
RoomState.prototype = {
/**
* Get all RoomMembers in this room.
* @return {Array<RoomMember>} A list of RoomMembers.
*/
getMembers: function() {
return utils.values(this.members);
},
/**
* Get state events from the state of the room.
* @param {string} eventType The event type of the state event.