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

Commit

Permalink
Revert "Merge pull request #807 from matrix-org/matthew/quick-search"
Browse files Browse the repository at this point in the history
This reverts commit 0ad1d8c, reversing
changes made to 1189368.
  • Loading branch information
dbkr committed May 16, 2017
1 parent 67c6a8b commit ebfafb3
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 262 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"react": "^15.4.0",
"react-addons-css-transition-group": "15.3.2",
"react-dom": "^15.4.0",
"react-gemini-scrollbar": "matrix-org/react-gemini-scrollbar#39d858c",
"react-gemini-scrollbar": "matrix-org/react-gemini-scrollbar#5e97aef",
"sanitize-html": "^1.11.1",
"text-encoding-utf-8": "^1.0.1",
"velocity-vector": "vector-im/velocity#059e3b2",
Expand Down
62 changes: 0 additions & 62 deletions src/ConstantTimeDispatcher.js

This file was deleted.

1 change: 0 additions & 1 deletion src/KeyCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ module.exports = {
DELETE: 46,
KEY_D: 68,
KEY_E: 69,
KEY_K: 75,
};
1 change: 0 additions & 1 deletion src/components/structures/TimelinePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,6 @@ var TimelinePanel = React.createClass({
this.props.timelineSet.room.setUnreadNotificationCount('highlight', 0);
dis.dispatch({
action: 'on_room_read',
room: this.props.timelineSet.room,
});
}
}
Expand Down
8 changes: 1 addition & 7 deletions src/components/views/dialogs/QuestionDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ export default React.createClass({
this.props.onFinished(false);
},

componentDidMount: function() {
if (this.props.focus) {
this.refs.button.focus();
}
},

render: function() {
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
const cancelButton = this.props.hasCancelButton ? (
Expand All @@ -69,7 +63,7 @@ export default React.createClass({
{this.props.description}
</div>
<div className="mx_Dialog_buttons">
<button ref="button" className="mx_Dialog_primary" onClick={this.onOk}>
<button className="mx_Dialog_primary" onClick={this.onOk} autoFocus={this.props.focus}>
{this.props.button}
</button>
{this.props.extraButtons}
Expand Down
Loading

0 comments on commit ebfafb3

Please sign in to comment.