signal-desktop/ts/util/canEditMessages.ts
2023-06-15 13:14:52 -07:00

13 lines
345 B
TypeScript

// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { isEnabled } from '../RemoteConfig';
import { isBeta } from './version';
export function canEditMessages(): boolean {
return (
isBeta(window.getVersion()) ||
isEnabled('desktop.internalUser') ||
isEnabled('desktop.editMessageSend')
);
}