check simplesite for notifications

This commit is contained in:
zeppi 2021-03-25 15:53:07 -04:00 committed by jessopb
parent cd8b028f8f
commit 33c325031d

View file

@ -6,7 +6,7 @@ import { ipcRenderer, remote } from 'electron';
import path from 'path'; import path from 'path';
import * as ACTIONS from 'constants/action_types'; import * as ACTIONS from 'constants/action_types';
import * as MODALS from 'constants/modal_types'; import * as MODALS from 'constants/modal_types';
import { DOMAIN } from 'config'; import { DOMAIN, SIMPLE_SITE } from 'config';
import { import {
Lbry, Lbry,
doBalanceSubscribe, doBalanceSubscribe,
@ -541,7 +541,7 @@ export function doSignIn() {
return (dispatch, getState) => { return (dispatch, getState) => {
const state = getState(); const state = getState();
const user = selectUser(state); const user = selectUser(state);
const notificationsEnabled = user.experimental_ui; const notificationsEnabled = SIMPLE_SITE || user.experimental_ui;
if (notificationsEnabled) { if (notificationsEnabled) {
dispatch(doNotificationSocketConnect()); dispatch(doNotificationSocketConnect());