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;