Commit 3ef41d27 authored by seotts's avatar seotts

Remove use of new studios feature flag

parent 414503f3
...@@ -147,8 +147,6 @@ module.exports.selectStudioCommentsGloballyEnabled = state => ...@@ -147,8 +147,6 @@ module.exports.selectStudioCommentsGloballyEnabled = state =>
module.exports.selectMuteStatus = state => get(state, ['session', 'session', 'permissions', 'mute_status'], module.exports.selectMuteStatus = state => get(state, ['session', 'session', 'permissions', 'mute_status'],
{muteExpiresAt: 0, offenses: [], showWarning: false}); {muteExpiresAt: 0, offenses: [], showWarning: false});
module.exports.selectIsMuted = state => (module.exports.selectMuteStatus(state).muteExpiresAt || 0) * 1000 > Date.now(); module.exports.selectIsMuted = state => (module.exports.selectMuteStatus(state).muteExpiresAt || 0) * 1000 > Date.now();
module.exports.selectNewStudiosLaunched = state => get(state, ['session', 'session', 'flags', 'new_studios_launched'],
false);
module.exports.selectStudioTransferLaunched = state => get(state, ['session', 'session', 'flags', module.exports.selectStudioTransferLaunched = state => get(state, ['session', 'session', 'flags',
'studio_transfer_launched'], false); 'studio_transfer_launched'], false);
......
...@@ -12,7 +12,7 @@ const {connect} = require('react-redux'); ...@@ -12,7 +12,7 @@ const {connect} = require('react-redux');
const {useState} = require('react'); const {useState} = require('react');
const projectShape = require('./projectshape.jsx').projectShape; const projectShape = require('./projectshape.jsx').projectShape;
import {selectIsMuted, selectNewStudiosLaunched} from '../../redux/session.js'; import {selectIsMuted} from '../../redux/session.js';
import StudioMuteEditMessage from '../studio/studio-mute-edit-message.jsx'; import StudioMuteEditMessage from '../studio/studio-mute-edit-message.jsx';
require('./subactions.scss'); require('./subactions.scss');
...@@ -159,6 +159,6 @@ Subactions.propTypes = { ...@@ -159,6 +159,6 @@ Subactions.propTypes = {
module.exports = connect( module.exports = connect(
state => ({ state => ({
showAddToStudioMuteError: selectNewStudiosLaunched(state) && selectIsMuted(state) showAddToStudioMuteError: selectIsMuted(state)
}) })
)(Subactions); )(Subactions);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment