Merge pull request #1577 from mattermost/plt-1307

PLT-1307 Make proper async calls when switching channels
Этот коммит содержится в:
Joram Wilander
2015-12-02 11:29:51 -05:00
родитель ac3f0335be 2abb0ae354
Коммит 2b7ce16ea9
4 изменённых файлов: 73 добавлений и 60 удалений

Просмотреть файл

@@ -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({