Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
HarHarLinks committed Feb 6, 2024
1 parent e77ac9f commit 547e0be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/models/room-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { TypedEventEmitter } from "./typed-event-emitter";
import { Beacon, BeaconEvent, BeaconEventHandlerMap, getBeaconInfoIdentifier, BeaconIdentifier } from "./beacon";
import { TypedReEmitter } from "../ReEmitter";
import { M_BEACON, M_BEACON_INFO } from "../@types/beacon";
import { UNSTABLE_ELEMENT_FUNCTIONAL_USERS } from "../@types/event"
import { UNSTABLE_ELEMENT_FUNCTIONAL_USERS } from "../@types/event";

export interface IMarkerFoundOptions {
/** Whether the timeline was empty before the marker event arrived in the
Expand Down Expand Up @@ -227,8 +227,8 @@ export class RoomState extends TypedEventEmitter<EmittedEvents, EventHandlerMap>
*/
public getJoinedFunctionalMemberCount(): number {
return this.getFunctionalMembers().reduce((count, m) => {
return this.getMembers().find((member) => member.userId === m)?.membership === "join" ? count + 1 : count;
}, 0);
return this.getMembers().find((member) => member.userId === m)?.membership === "join" ? count + 1 : count;
}, 0);
}

/**
Expand All @@ -253,8 +253,8 @@ export class RoomState extends TypedEventEmitter<EmittedEvents, EventHandlerMap>
*/
public getInvitedFunctionalMemberCount(): number {
return this.getFunctionalMembers().reduce((count, m) => {
return this.getMembers().find((member) => member.userId === m)?.membership === "invite" ? count + 1 : count;
}, 0);
return this.getMembers().find((member) => member.userId === m)?.membership === "invite" ? count + 1 : count;
}, 0);
}

/**
Expand Down

0 comments on commit 547e0be

Please sign in to comment.