Show a warning dialog when sending first edited message
This commit is contained in:
parent
23b058fe10
commit
4d354c8005
8 changed files with 175 additions and 23 deletions
10
ts/util/maybeBlockSendForEditWarningModal.ts
Normal file
10
ts/util/maybeBlockSendForEditWarningModal.ts
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue