Show a warning dialog when sending first edited message

This commit is contained in:
Josh Perez 2023-06-14 15:20:06 -07:00 committed by GitHub
parent 23b058fe10
commit 4d354c8005
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 175 additions and 23 deletions

View file

@ -0,0 +1,10 @@
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { explodePromise } from './explodePromise';
export async function maybeBlockSendForEditWarningModal(): Promise<boolean> {
const explodedPromise = explodePromise<boolean>();
window.reduxActions.globalModals.showSendEditWarningModal(explodedPromise);
return explodedPromise.promise;
}