diff --git a/app/views/RoomsListView/index.tsx b/app/views/RoomsListView/index.tsx index 3ff5ff6a6..ce1ac8004 100644 --- a/app/views/RoomsListView/index.tsx +++ b/app/views/RoomsListView/index.tsx @@ -593,8 +593,11 @@ class RoomsListView extends React.Component { logEvent(events.RL_SEARCH); - const { dispatch } = this.props; + const { dispatch, showServerDropdown } = this.props; this.internalSetState({ searching: true }, () => { + if (showServerDropdown) { + dispatch(closeServerDropdown()); + } dispatch(openSearchHeader()); this.handleSearch(''); this.setHeader();