diff --git a/src/components/views/elements/DirectorySearchBox.js b/src/components/views/elements/DirectorySearchBox.js index 277c90f129..c10295d247 100644 --- a/src/components/views/elements/DirectorySearchBox.js +++ b/src/components/views/elements/DirectorySearchBox.js @@ -24,6 +24,7 @@ export default class DirectorySearchBox extends React.Component { this.onClearClick = this.onClearClick.bind(this); this.onChange = this.onChange.bind(this); this.onKeyUp = this.onKeyUp.bind(this); + this.onJoinButtonClick = this.onJoinButtonClick.bind(this); this.input = null; } @@ -59,12 +60,28 @@ export default class DirectorySearchBox extends React.Component { } } + onJoinButtonClick() { + } + + _contentLooksLikeAlias() { + return true; + } + render() { const searchbox_classes = { mx_DirectorySearchBox: true, }; searchbox_classes[this.props.className] = true; + let join_button; + if (this._contentLooksLikeAlias()) { + join_button = + Join + ; + } + return + {join_button} ; }