From ec8b6f9dd29e981b8f3bc9c4cab2365c768441cf Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 15 Jul 2021 23:35:44 +0530 Subject: [PATCH] Inline method Signed-off-by: RMidhunSuresh --- src/domain/session/rightpanel/MemberListViewModel.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/domain/session/rightpanel/MemberListViewModel.js b/src/domain/session/rightpanel/MemberListViewModel.js index 19ca6e9a..ce0fff40 100644 --- a/src/domain/session/rightpanel/MemberListViewModel.js +++ b/src/domain/session/rightpanel/MemberListViewModel.js @@ -13,7 +13,7 @@ export class MemberListViewModel extends ViewModel { this.track(powerLevelsObservable.subscribe(() => { /*resort based on new power levels here*/ })); const powerLevels = powerLevelsObservable.get(); - this.memberTileViewModels = this._mapTileViewModels(this._filterJoinedMembers(list.members)) + this.memberTileViewModels = this._mapTileViewModels(list.members.filterValues(member => member.membership === "join")) .sortValues(createMemberComparator(powerLevels)); this.nameDisambiguator = new Disambiguator(); this.mediaRepository = options.mediaRepository; @@ -25,10 +25,6 @@ export class MemberListViewModel extends ViewModel { get previousSegmentName() { return "details"; } - _filterJoinedMembers(members) { - return members.filterValues(member => member.membership === "join"); - } - _mapTileViewModels(members) { const mapper = (member, emitChange) => { const mediaRepository = this.mediaRepository;