1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-05 00:22:28 +03:00

update comments

This commit is contained in:
HarHarLinks
2024-02-06 16:30:51 +01:00
committed by Kim Brose
parent 0ce2d820cb
commit f9b41f6730

View File

@ -222,9 +222,8 @@ export class RoomState extends TypedEventEmitter<EmittedEvents, EventHandlerMap>
}
/**
* 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<EmittedEvents, EventHandlerMap>
}
/**
* 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) => {