mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
Specify default number of members to load
This commit is contained in:
parent
e77ea352e4
commit
b898d15580
@ -15,7 +15,6 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import Promise from 'bluebird';
|
|
||||||
import sdk from '../../../index';
|
import sdk from '../../../index';
|
||||||
import { groupMemberFromApiObject } from '../../../groups';
|
import { groupMemberFromApiObject } from '../../../groups';
|
||||||
import GeminiScrollbar from 'react-gemini-scrollbar';
|
import GeminiScrollbar from 'react-gemini-scrollbar';
|
||||||
@ -36,7 +35,8 @@ export default withMatrixClient(React.createClass({
|
|||||||
return {
|
return {
|
||||||
fetching: false,
|
fetching: false,
|
||||||
members: null,
|
members: null,
|
||||||
}
|
truncateAt: INITIAL_LOAD_NUM_MEMBERS,
|
||||||
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillMount: function() {
|
componentWillMount: function() {
|
||||||
@ -74,7 +74,7 @@ export default withMatrixClient(React.createClass({
|
|||||||
|
|
||||||
_showFullMemberList: function() {
|
_showFullMemberList: function() {
|
||||||
this.setState({
|
this.setState({
|
||||||
truncateAt: -1
|
truncateAt: -1,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user