Enables edit messages for beta version

This commit is contained in:
Josh Perez 2023-06-15 13:14:52 -07:00 committed by GitHub
parent c961ea9ef7
commit 81e600bf2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,9 +2,12 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { isEnabled } from '../RemoteConfig';
import { isBeta } from './version';
export function canEditMessages(): boolean {
return (
isEnabled('desktop.internalUser') || isEnabled('desktop.editMessageSend')
isBeta(window.getVersion()) ||
isEnabled('desktop.internalUser') ||
isEnabled('desktop.editMessageSend')
);
}