diff --git a/src/models/room-state.ts b/src/models/room-state.ts index 89b36cb4c5f..3bbc931bb5a 100644 --- a/src/models/room-state.ts +++ b/src/models/room-state.ts @@ -222,9 +222,8 @@ export class RoomState extends TypedEventEmitter } /** - * Returns the number of joined non-functional members in this room - * This method caches the result. - * @returns The number of non-functional members in this room whose membership is 'join' + * Returns the number of joined functional members in this room + * @returns The number of functional members in this room whose membership is 'join' */ public getJoinedFunctionalMemberCount(): number { return this.getFunctionalMembers().reduce((count, m) => { @@ -249,8 +248,8 @@ export class RoomState extends TypedEventEmitter } /** - * Returns the number of invited members in this room - * @returns The number of members in this room whose membership is 'invite' + * Returns the number of invited functional members in this room + * @returns The number of functional members in this room whose membership is 'invite' */ public getInvitedFunctionalMemberCount(): number { return this.getFunctionalMembers().reduce((count, m) => {