diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-10-26 12:05:09 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-10-26 12:05:09 -0400 |
commit | fda62fbbf576ead8aea3b4a39a167b7f2d218142 (patch) | |
tree | 1e4ea60dbe93dbaaa1ec09f6a5dd4bd8b4cab02f /web/react/stores/socket_store.jsx | |
parent | b46c01b2903d49903cfcf6588097cb72d599b391 (diff) | |
download | chat-fda62fbbf576ead8aea3b4a39a167b7f2d218142.tar.gz chat-fda62fbbf576ead8aea3b4a39a167b7f2d218142.tar.bz2 chat-fda62fbbf576ead8aea3b4a39a167b7f2d218142.zip |
Fix error message on leaving channel
Diffstat (limited to 'web/react/stores/socket_store.jsx')
-rw-r--r-- | web/react/stores/socket_store.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx index 9410c1e9c..d4b0e62db 100644 --- a/web/react/stores/socket_store.jsx +++ b/web/react/stores/socket_store.jsx @@ -160,7 +160,7 @@ function handleNewPostEvent(msg) { if (window.isActive) { AsyncClient.updateLastViewedAt(true); } - } else { + } else if (UserStore.getCurrentId() !== msg.user_id || post.type !== Constants.POST_TYPE_JOIN_LEAVE) { AsyncClient.getChannel(msg.channel_id); } |