diff --git a/src/components/views/dialogs/ChatInviteDialog.js b/src/components/views/dialogs/ChatInviteDialog.js index 1cd1219095..d66d6243a7 100644 --- a/src/components/views/dialogs/ChatInviteDialog.js +++ b/src/components/views/dialogs/ChatInviteDialog.js @@ -22,7 +22,7 @@ var MatrixClientPeg = require("../../../MatrixClientPeg"); var rate_limited_func = require("../../../ratelimitedfunc"); var Modal = require('../../../Modal'); -const TRUNCATE_QUERY_LIST = 4; +const TRUNCATE_QUERY_LIST = 40; module.exports = React.createClass({ displayName: "ChatInviteDialog", @@ -242,6 +242,16 @@ module.exports = React.createClass({ ); } + var queryList; + var queryListElements = this.createQueryListTiles(); + if (queryListElements.length > 0) { + queryList = ( +
+ { queryListElements } +
+ ); + } + return (
@@ -255,9 +265,7 @@ module.exports = React.createClass({
{ query }
-
- { this.createQueryListTiles() } -
+ { queryList }