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