Enable screensharing flag for beta users

This commit is contained in:
Josh Perez 2021-05-25 18:20:33 -04:00 committed by GitHub
parent 3a6c9aa314
commit 07a0a6da22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,11 +2,13 @@
// SPDX-License-Identifier: AGPL-3.0-only
import * as RemoteConfig from '../RemoteConfig';
import { isBeta } from './version';
// We can remove this function once screen sharing has been turned on for everyone
export function isScreenSharingEnabled(): boolean {
return (
RemoteConfig.isEnabled('desktop.worksAtSignal') ||
RemoteConfig.isEnabled('desktop.screensharing')
RemoteConfig.isEnabled('desktop.screensharing') ||
isBeta(window.getVersion())
);
}