Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HarHarLinks committed Feb 16, 2024
1 parent 0ce2d82 commit f9b41f6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/models/room-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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) => {
Expand Down

0 comments on commit f9b41f6

Please sign in to comment.