forked from mystiq/hydrogen-web
Inline method
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
c410aed672
commit
ec8b6f9dd2
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue