Move channel click dispatch outside of promise (#4545)

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

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

@@ -50,6 +50,7 @@ export function emitChannelClickEvent(channel) {
AsyncClient.updateLastViewedAt(chan.id);
loadPosts(chan.id);
trackPage();
});
AppDispatcher.handleViewAction({
type: ActionTypes.CLICK_CHANNEL,
@@ -57,7 +58,6 @@ export function emitChannelClickEvent(channel) {
id: chan.id,
prev: ChannelStore.getCurrentId()
});
});
}
if (channel.fake) {