Accept multiple images and videos in attachment picker

This commit is contained in:
Jamie Kyle
2022-09-15 14:40:48 -07:00
committed by GitHub
parent 6cfe2a09df
commit 01587b0f39
13 changed files with 87 additions and 54 deletions

View File

@@ -54,7 +54,7 @@ export async function handleAttachmentsProcessing({
for (let i = 0; i < files.length; i += 1) {
const file = files[i];
const processingResult = preProcessAttachment(file, nextDraftAttachments);
if (processingResult) {
if (processingResult != null) {
onShowToast(processingResult);
} else {
const pendingAttachment = getPendingAttachment(file);