prevent subscription notification when viewing subscriptions page

This commit is contained in:
Travis Eden 2018-08-14 15:30:36 -04:00
parent 35f35dcbae
commit 30e0ff309a

View file

@ -154,6 +154,7 @@ export function doUpdateLoadStatus(uri, outpoint) {
);
};
}
if (state.navigation.currentPath !== '/subscriptions') {
dispatch(
setSubscriptionNotification(
notifications[uri].subscription,
@ -161,6 +162,7 @@ export function doUpdateLoadStatus(uri, outpoint) {
NOTIFICATION_TYPES.DOWNLOADED
)
);
}
} else {
// If notifications are disabled(false) just return
if (!selectosNotificationsEnabled(getState())) return;