summaryrefslogtreecommitdiffstats
path: root/webapp/actions/global_actions.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-03-08 04:13:16 -0500
committerGeorge Goldberg <george@gberg.me>2017-03-08 09:13:16 +0000
commitdb7540b111f8b9f983adcfc73fd897e5d83c2fef (patch)
treec26c39b4e7063dda503bd55dd75360c135145ae4 /webapp/actions/global_actions.jsx
parent2bea17251ef90ab62381ebecaa97fc41c2c94f99 (diff)
downloadchat-db7540b111f8b9f983adcfc73fd897e5d83c2fef.tar.gz
chat-db7540b111f8b9f983adcfc73fd897e5d83c2fef.tar.bz2
chat-db7540b111f8b9f983adcfc73fd897e5d83c2fef.zip
Add sync logic for DMs/GMs when network reconnects (#5676)
Diffstat (limited to 'webapp/actions/global_actions.jsx')
-rw-r--r--webapp/actions/global_actions.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/actions/global_actions.jsx b/webapp/actions/global_actions.jsx
index e22c94294..c81478069 100644
--- a/webapp/actions/global_actions.jsx
+++ b/webapp/actions/global_actions.jsx
@@ -46,10 +46,10 @@ export function emitChannelClickEvent(channel) {
}
function switchToChannel(chan) {
const channelMember = ChannelStore.getMyMember(chan.id);
- const getMyChannelMembersPromise = AsyncClient.getChannelMember(chan.id, UserStore.getCurrentId());
+ const getMyChannelMemberPromise = AsyncClient.getChannelMember(chan.id, UserStore.getCurrentId());
const oldChannelId = ChannelStore.getCurrentId();
- getMyChannelMembersPromise.then(() => {
+ getMyChannelMemberPromise.then(() => {
AsyncClient.getChannelStats(chan.id, true);
AsyncClient.viewChannel(chan.id, oldChannelId);
loadPosts(chan.id);