summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-02-14 11:38:07 -0500
committerCorey Hulen <corey@hulen.com>2017-02-14 11:38:07 -0500
commit247ac8d1cca1072a9b808b0e91912257e06a5d0f (patch)
treea734099586746a606fa0ad9981b7ee2a37d23299 /webapp
parent28aa7cdbf2357bda51ba740fd4d7af48b36b96b4 (diff)
downloadchat-247ac8d1cca1072a9b808b0e91912257e06a5d0f.tar.gz
chat-247ac8d1cca1072a9b808b0e91912257e06a5d0f.tar.bz2
chat-247ac8d1cca1072a9b808b0e91912257e06a5d0f.zip
Increment channel counts for own messages (#5399)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/stores/channel_store.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/stores/channel_store.jsx b/webapp/stores/channel_store.jsx
index aacc23305..b82be650e 100644
--- a/webapp/stores/channel_store.jsx
+++ b/webapp/stores/channel_store.jsx
@@ -516,6 +516,10 @@ ChannelStore.dispatchToken = AppDispatcher.register((payload) => {
}
break;
+ case ActionTypes.CREATE_POST:
+ ChannelStore.incrementMessages(action.post.channel_id);
+ break;
+
default:
break;
}