Fix bad action when tapping on a push notification (#1822)

This commit is contained in:
Elias Nahum 2018-06-25 11:44:42 -04:00 committed by Harrison Healey
parent f30d278cf1
commit 71e16afbb4

View file

@ -87,7 +87,7 @@ export function loadFromPushNotification(notification) {
// we should get the posts
if (channelId === currentChannelId) {
dispatch(markChannelAsRead(channelId, null, false));
await dispatch(retryGetPostsAction(getPosts(channelId)));
await retryGetPostsAction(getPosts(channelId), dispatch, getState);
} else {
// when the notification is from a channel other than the current channel
dispatch(markChannelAsRead(channelId, currentChannelId, false));