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,13 +154,15 @@ export function doUpdateLoadStatus(uri, outpoint) {
|
|||
);
|
||||
};
|
||||
}
|
||||
dispatch(
|
||||
setSubscriptionNotification(
|
||||
notifications[uri].subscription,
|
||||
uri,
|
||||
NOTIFICATION_TYPES.DOWNLOADED
|
||||
)
|
||||
);
|
||||
if (state.navigation.currentPath !== '/subscriptions') {
|
||||
dispatch(
|
||||
setSubscriptionNotification(
|
||||
notifications[uri].subscription,
|
||||
uri,
|
||||
NOTIFICATION_TYPES.DOWNLOADED
|
||||
)
|
||||
);
|
||||
}
|
||||
} else {
|
||||
// If notifications are disabled(false) just return
|
||||
if (!selectosNotificationsEnabled(getState())) return;
|
||||
|
|
Loading…
Reference in a new issue