From b898d15580f104137da33095f7ce3040ced287e9 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 21 Aug 2017 19:30:28 +0100 Subject: [PATCH] Specify default number of members to load --- src/components/views/groups/GroupMemberList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/groups/GroupMemberList.js b/src/components/views/groups/GroupMemberList.js index 0f74ff5eed..4c2cc03a5c 100644 --- a/src/components/views/groups/GroupMemberList.js +++ b/src/components/views/groups/GroupMemberList.js @@ -15,7 +15,6 @@ limitations under the License. */ import React from 'react'; import { _t } from '../../../languageHandler'; -import Promise from 'bluebird'; import sdk from '../../../index'; import { groupMemberFromApiObject } from '../../../groups'; import GeminiScrollbar from 'react-gemini-scrollbar'; @@ -36,7 +35,8 @@ export default withMatrixClient(React.createClass({ return { fetching: false, members: null, - } + truncateAt: INITIAL_LOAD_NUM_MEMBERS, + }; }, componentWillMount: function() { @@ -74,7 +74,7 @@ export default withMatrixClient(React.createClass({ _showFullMemberList: function() { this.setState({ - truncateAt: -1 + truncateAt: -1, }); },