summaryrefslogtreecommitdiffstats
path: root/webapp/actions/channel_actions.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-11-01 11:13:33 -0400
committerGitHub <noreply@github.com>2016-11-01 11:13:33 -0400
commit92642bab6852d02e6b58f881ac909788299d0c5c (patch)
tree9c54d4c54bc29a488a34e659a3b75b3d2105ce03 /webapp/actions/channel_actions.jsx
parent9bae1f7e9308be8c7084f73e6b897dde24aad717 (diff)
downloadchat-92642bab6852d02e6b58f881ac909788299d0c5c.tar.gz
chat-92642bab6852d02e6b58f881ac909788299d0c5c.tar.bz2
chat-92642bab6852d02e6b58f881ac909788299d0c5c.zip
Load channel members with channels to make sure we have latest unread counts (#4389)
Diffstat (limited to 'webapp/actions/channel_actions.jsx')
-rw-r--r--webapp/actions/channel_actions.jsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/actions/channel_actions.jsx b/webapp/actions/channel_actions.jsx
index c9c4e6883..5003d6530 100644
--- a/webapp/actions/channel_actions.jsx
+++ b/webapp/actions/channel_actions.jsx
@@ -186,3 +186,8 @@ export function unmarkFavorite(channelId) {
AsyncClient.deletePreferences([pref]);
}
+
+export function loadChannelsForCurrentUser() {
+ AsyncClient.getChannels();
+ AsyncClient.getMyChannelMembers();
+}