diff options
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/actions/websocket_actions.jsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx index f85c32479..b7a0b12a8 100644 --- a/webapp/actions/websocket_actions.jsx +++ b/webapp/actions/websocket_actions.jsx @@ -238,7 +238,9 @@ function handleNewPostEvent(msg) { posts[post.id] = post; loadProfilesForPosts(posts); - UserStore.setStatus(post.user_id, UserStatuses.ONLINE); + if (post.user_id !== UserStore.getCurrentId()) { + UserStore.setStatus(post.user_id, UserStatuses.ONLINE); + } } function handlePostEditEvent(msg) { @@ -400,7 +402,9 @@ function handlePreferencesDeletedEvent(msg) { function handleUserTypingEvent(msg) { GlobalActions.emitRemoteUserTypingEvent(msg.broadcast.channel_id, msg.data.user_id, msg.data.parent_id); - UserStore.setStatus(msg.data.user_id, UserStatuses.ONLINE); + if (msg.data.user_id !== UserStore.getCurrentId()) { + UserStore.setStatus(msg.data.user_id, UserStatuses.ONLINE); + } } function handleStatusChangedEvent(msg) { |