UI changes for Direct messages and Bad connection

This commit is contained in:
Asaad Mahmood
2015-11-13 11:59:15 +05:00
parent 10901b4d50
commit 25fdacd46a
2 changed files with 5 additions and 1 deletions

View File

@@ -9,7 +9,7 @@
"EnableOutgoingWebhooks": true,
"EnablePostUsernameOverride": false,
"EnablePostIconOverride": false,
"EnableTesting": false,
"EnableTesting": true,
"EnableSecurityFixAlert": true
},
"TeamSettings": {

View File

@@ -50,6 +50,10 @@ export default class MoreDirectChannels extends React.Component {
handleFilterChange() {
const filter = ReactDOM.findDOMNode(this.refs.filter).value;
if ($(window).width() > 768) {
$(ReactDOM.findDOMNode(this.refs.userList)).scrollTop(0);
}
if (filter !== this.state.filter) {
this.setState({filter});
}