summaryrefslogtreecommitdiffstats
path: root/web/react/components/more_direct_channels.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaad@spinpunch.com>2015-12-11 20:10:52 +0500
committerAsaad Mahmood <asaad@spinpunch.com>2015-12-11 20:10:52 +0500
commit8236bde848a1e38d3cbfc5a2d5c2f191e03dba0e (patch)
tree8544f2dbe33854d6e677f1572e07ec00dded73d7 /web/react/components/more_direct_channels.jsx
parent2e19d529aa1f7c0eac7b26596e657b7820944c17 (diff)
downloadchat-8236bde848a1e38d3cbfc5a2d5c2f191e03dba0e.tar.gz
chat-8236bde848a1e38d3cbfc5a2d5c2f191e03dba0e.tar.bz2
chat-8236bde848a1e38d3cbfc5a2d5c2f191e03dba0e.zip
Updating direct messages code
Diffstat (limited to 'web/react/components/more_direct_channels.jsx')
-rw-r--r--web/react/components/more_direct_channels.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/more_direct_channels.jsx b/web/react/components/more_direct_channels.jsx
index c14bec52b..f66eb7c26 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 {