From 30e0ff309a22826b0abba5726ec224529d021bc0 Mon Sep 17 00:00:00 2001 From: Travis Eden Date: Tue, 14 Aug 2018 15:30:36 -0400 Subject: [PATCH] prevent subscription notification when viewing subscriptions page --- src/renderer/redux/actions/content.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/renderer/redux/actions/content.js b/src/renderer/redux/actions/content.js index 021d2dc60..fa3ac9afa 100644 --- a/src/renderer/redux/actions/content.js +++ b/src/renderer/redux/actions/content.js @@ -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;