From 8236bde848a1e38d3cbfc5a2d5c2f191e03dba0e Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Fri, 11 Dec 2015 20:10:52 +0500 Subject: [PATCH] Updating direct messages code --- web/react/components/more_direct_channels.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/react/components/more_direct_channels.jsx b/web/react/components/more_direct_channels.jsx index c14bec52b6..f66eb7c267 100644 --- a/web/react/components/more_direct_channels.jsx +++ b/web/react/components/more_direct_channels.jsx @@ -54,7 +54,7 @@ export default class MoreDirectChannels extends React.Component { } onShow() { - if ($(window).width() > 768) { + if (!Utils.isMobile()) { $(ReactDOM.findDOMNode(this.refs.userList)).perfectScrollbar(); $(ReactDOM.findDOMNode(this.refs.userList)).css('max-height', $(window).height() - 300); } else {