summaryrefslogtreecommitdiffstats
path: root/web/react/stores
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-12-08 08:41:22 -0500
committerJoramWilander <jwawilander@gmail.com>2015-12-08 08:41:22 -0500
commit71dd5b68cc36d20c93bd8e80adc90cd9a5305aae (patch)
tree92df4161979c278d3c49c948f3b6ed4456138a4b /web/react/stores
parenta686bcc19af3b8a0a89abfb0f85cabeb65005e6e (diff)
downloadchat-71dd5b68cc36d20c93bd8e80adc90cd9a5305aae.tar.gz
chat-71dd5b68cc36d20c93bd8e80adc90cd9a5305aae.tar.bz2
chat-71dd5b68cc36d20c93bd8e80adc90cd9a5305aae.zip
Fix edited posts not updating by websocket
Diffstat (limited to 'web/react/stores')
-rw-r--r--web/react/stores/socket_store.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx
index c8e3c8bdd..d5aed40cf 100644
--- a/web/react/stores/socket_store.jsx
+++ b/web/react/stores/socket_store.jsx
@@ -225,6 +225,7 @@ function handlePostEditEvent(msg) {
// Store post
const post = JSON.parse(msg.props.post);
PostStore.storePost(post);
+ PostStore.emitChange();
// Update channel state
if (ChannelStore.getCurrentId() === msg.channel_id) {