Disallow paste image when editing

This commit is contained in:
Josh Perez 2023-08-07 18:32:18 -04:00 committed by GitHub
parent 3ec235bc56
commit 4ba3a7856c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1064,6 +1064,11 @@ function processAttachments({
throw new Error('processAttachments: Unable to find conv');
}
const draftEditMessage = conversation.get('draftEditMessage');
if (draftEditMessage) {
return;
}
const state = getState();
const isRecording =
state.audioRecorder.recordingState === RecordingState.Recording;