From 342fcb4024f76787b61a13d53ce333afb5062796 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Mon, 15 Nov 2021 11:20:47 +0800 Subject: [PATCH] doSignIn: cleanup, no functional change Seems unlikely that we'll need to disable notifications, so cleaned up the code a bit. --- ui/redux/actions/app.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/ui/redux/actions/app.js b/ui/redux/actions/app.js index a4e9fed04..505675d47 100644 --- a/ui/redux/actions/app.js +++ b/ui/redux/actions/app.js @@ -9,7 +9,7 @@ import * as MODALS from 'constants/modal_types'; import * as SETTINGS from 'constants/settings'; import * as DAEMON_SETTINGS from 'constants/daemon_settings'; import * as SHARED_PREFERENCES from 'constants/shared_preferences'; -import { DOMAIN, SIMPLE_SITE } from 'config'; +import { DOMAIN } from 'config'; import Lbry from 'lbry'; import { doFetchChannelListMine, doFetchCollectionListMine, doCheckPendingClaims } from 'redux/actions/claims'; import { selectClaimForUri, selectClaimIsMineForUri, selectMyChannelClaims } from 'redux/selectors/claims'; @@ -543,20 +543,12 @@ export function doSignIn() { pushNotifications.validate(user.id); } - const notificationsEnabled = SIMPLE_SITE || user.experimental_ui; - - dispatch(doNotificationSocketConnect(notificationsEnabled)); - - if (notificationsEnabled) { - dispatch(doNotificationList()); - } + dispatch(doNotificationSocketConnect(true)); + dispatch(doNotificationList()); dispatch(doCheckPendingClaims()); - - // @if TARGET='web' dispatch(doBalanceSubscribe()); dispatch(doFetchChannelListMine()); dispatch(doFetchCollectionListMine()); - // @endif }; }