diff --git a/src/components/views/rooms/MemberList.js b/src/components/views/rooms/MemberList.js
index 9d22d9e9ec..babbfcf649 100644
--- a/src/components/views/rooms/MemberList.js
+++ b/src/components/views/rooms/MemberList.js
@@ -30,6 +30,7 @@ var rate_limited_func = require('../../../ratelimitedfunc');
var CallHandler = require("../../../CallHandler");
const INITIAL_LOAD_NUM_MEMBERS = 30;
+const INITIAL_LOAD_NUM_INVITED = 5;
module.exports = React.createClass({
displayName: 'MemberList',
@@ -39,7 +40,8 @@ module.exports = React.createClass({
members: [],
// ideally we'd size this to the page height, but
// in practice I find that a little constraining
- truncateAt: INITIAL_LOAD_NUM_MEMBERS,
+ truncateAtJoined: INITIAL_LOAD_NUM_MEMBERS,
+ truncateAtInvited: INITIAL_LOAD_NUM_INVITED,
searchQuery: "",
};
if (!this.props.roomId) return state;
@@ -204,7 +206,15 @@ module.exports = React.createClass({
return to_display;
},
- _createOverflowTile: function(overflowCount, totalCount) {
+ _createOverflowTileJoined: function(overflowCount, totalCount) {
+ return this._createOverflowTile(overflowCount, totalCount, this._showFullJoinedMemberList);
+ },
+
+ _createOverflowTileInvited: function(overflowCount, totalCount) {
+ return this._createOverflowTile(overflowCount, totalCount, this._showFullInvitedMemberList);
+ },
+
+ _createOverflowTile: function(overflowCount, totalCount, onClick) {
// For now we'll pretend this is any entity. It should probably be a separate tile.
const EntityTile = sdk.getComponent("rooms.EntityTile");
const BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
@@ -213,13 +223,19 @@ module.exports = React.createClass({