Move channel click dispatch outside of promise (#4545)

Этот коммит содержится в:
Joram Wilander
2016-11-14 13:48:22 -05:00
коммит произвёл Harrison Healey
родитель 11de77f63f
Коммит db0314053e

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

@@ -50,13 +50,13 @@ export function emitChannelClickEvent(channel) {
AsyncClient.updateLastViewedAt(chan.id); AsyncClient.updateLastViewedAt(chan.id);
loadPosts(chan.id); loadPosts(chan.id);
trackPage(); trackPage();
});
AppDispatcher.handleViewAction({ AppDispatcher.handleViewAction({
type: ActionTypes.CLICK_CHANNEL, type: ActionTypes.CLICK_CHANNEL,
name: chan.name, name: chan.name,
id: chan.id, id: chan.id,
prev: ChannelStore.getCurrentId() prev: ChannelStore.getCurrentId()
});
}); });
} }