mirror of https://github.com/vector-im/riot-web
Remove the member list loading hack
Now the memberlist os a truncated list it at-best makes no difference and may be marginally slowing us down.pull/21833/head
parent
a5272542ef
commit
743cb4b777
|
@ -54,7 +54,7 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
this.memberDict = this.getMemberDict();
|
this.memberDict = this.getMemberDict();
|
||||||
|
|
||||||
state.members = this.roomMembers(INITIAL_LOAD_NUM_MEMBERS);
|
state.members = this.roomMembers();
|
||||||
return state;
|
return state;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -83,19 +83,6 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
componentDidMount: function() {
|
|
||||||
var self = this;
|
|
||||||
|
|
||||||
// Lazy-load in more than the first N members
|
|
||||||
setTimeout(function() {
|
|
||||||
if (!self.isMounted()) return;
|
|
||||||
// lazy load to prevent it blocking the first render
|
|
||||||
self.setState({
|
|
||||||
members: self.roomMembers()
|
|
||||||
});
|
|
||||||
}, 50);
|
|
||||||
},
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
onRoomTimeline: function(ev, room, toStartOfTimeline, removed, data) {
|
onRoomTimeline: function(ev, room, toStartOfTimeline, removed, data) {
|
||||||
// ignore anything but real-time updates at the end of the room:
|
// ignore anything but real-time updates at the end of the room:
|
||||||
|
|
Loading…
Reference in New Issue