summaryrefslogtreecommitdiffstats
path: root/webapp/actions/websocket_actions.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-07-06 08:48:00 -0400
committerChristopher Speller <crspeller@gmail.com>2016-07-06 08:48:00 -0400
commit6c33350f5c7e58ac45d7300c035dd58ecf6b3330 (patch)
treea12ebc9d0b5df04bdbe36ae29fc06ddbcca54dc1 /webapp/actions/websocket_actions.jsx
parent31d956a0500f8fca49c82723aac5440659df77e3 (diff)
downloadchat-6c33350f5c7e58ac45d7300c035dd58ecf6b3330.tar.gz
chat-6c33350f5c7e58ac45d7300c035dd58ecf6b3330.tar.bz2
chat-6c33350f5c7e58ac45d7300c035dd58ecf6b3330.zip
On receive of a comment that we don't have the thread for, acquire the thread (#3490)
Diffstat (limited to 'webapp/actions/websocket_actions.jsx')
-rw-r--r--webapp/actions/websocket_actions.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx
index fba5632ca..17f84638d 100644
--- a/webapp/actions/websocket_actions.jsx
+++ b/webapp/actions/websocket_actions.jsx
@@ -14,6 +14,7 @@ import Client from 'utils/web_client.jsx';
import * as Utils from 'utils/utils.jsx';
import * as AsyncClient from 'utils/async_client.jsx';
import * as GlobalActions from 'actions/global_actions.jsx';
+import {handleNewPost} from 'actions/post_actions.jsx';
import Constants from 'utils/constants.jsx';
const SocketEvents = Constants.SocketEvents;
@@ -190,7 +191,7 @@ export function close() {
function handleNewPostEvent(msg) {
const post = JSON.parse(msg.props.post);
- GlobalActions.emitPostRecievedEvent(post, msg);
+ handleNewPost(post, msg);
}
function handlePostEditEvent(msg) {