prevent subscription notification when viewing subscriptions page
This commit is contained in:
parent
35f35dcbae
commit
30e0ff309a
1 changed files with 9 additions and 7 deletions
|
@ -154,6 +154,7 @@ export function doUpdateLoadStatus(uri, outpoint) {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (state.navigation.currentPath !== '/subscriptions') {
|
||||||
dispatch(
|
dispatch(
|
||||||
setSubscriptionNotification(
|
setSubscriptionNotification(
|
||||||
notifications[uri].subscription,
|
notifications[uri].subscription,
|
||||||
|
@ -161,6 +162,7 @@ export function doUpdateLoadStatus(uri, outpoint) {
|
||||||
NOTIFICATION_TYPES.DOWNLOADED
|
NOTIFICATION_TYPES.DOWNLOADED
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// If notifications are disabled(false) just return
|
// If notifications are disabled(false) just return
|
||||||
if (!selectosNotificationsEnabled(getState())) return;
|
if (!selectosNotificationsEnabled(getState())) return;
|
||||||
|
|
Loading…
Reference in a new issue