From 25fdacd46a4dc5f5166607777bbbcfd3cea87a63 Mon Sep 17 00:00:00 2001
From: Asaad Mahmood <Unknowngi@live.com>
Date: Fri, 13 Nov 2015 11:59:15 +0500
Subject: UI changes for Direct messages and Bad connection

---
 web/react/components/more_direct_channels.jsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'web/react/components/more_direct_channels.jsx')

diff --git a/web/react/components/more_direct_channels.jsx b/web/react/components/more_direct_channels.jsx
index 40deb37f2..d1265f67e 100644
--- a/web/react/components/more_direct_channels.jsx
+++ b/web/react/components/more_direct_channels.jsx
@@ -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});
         }
-- 
cgit v1.2.3-1-g7c22

