Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2693 from matrix-org/t3chguy/search_toggle
Browse files Browse the repository at this point in the history
Toggle Search using Room Header button
  • Loading branch information
turt2live committed Feb 25, 2019
2 parents 8ca1c96 + e12e2c4 commit 896a8c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/structures/RoomView.js
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,10 @@ module.exports = React.createClass({
},

onSearchClick: function() {
this.setState({ searching: true, showingPinned: false });
this.setState({
searching: !this.state.searching,
showingPinned: false,
});
},

onCancelSearchClick: function() {
Expand Down

0 comments on commit 896a8c1

Please sign in to comment.