From 14804965b5a13f2ffef3d45c690f51d0d7ce810a Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Wed, 2 Dec 2015 10:22:39 -0500
Subject: Make proper async calls when switching channels

---
 web/react/dispatcher/event_helpers.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'web/react/dispatcher/event_helpers.jsx')

diff --git a/web/react/dispatcher/event_helpers.jsx b/web/react/dispatcher/event_helpers.jsx
index d7f255aaa..6aac8ba43 100644
--- a/web/react/dispatcher/event_helpers.jsx
+++ b/web/react/dispatcher/event_helpers.jsx
@@ -11,8 +11,8 @@ import * as Client from '../utils/client.jsx';
 
 export function emitChannelClickEvent(channel) {
     AsyncClient.getChannels();
-    AsyncClient.getChannelExtraInfo();
-    AsyncClient.updateLastViewedAt();
+    AsyncClient.getChannelExtraInfo(channel.id);
+    AsyncClient.updateLastViewedAt(channel.id);
     AsyncClient.getPosts(channel.id);
 
     AppDispatcher.handleViewAction({
-- 
cgit v1.2.3-1-g7c22

