From d05df81c8d2a072d3f7d45e372c7a8049c24c450 Mon Sep 17 00:00:00 2001 From: Danny Noler Date: Wed, 18 Apr 2018 16:08:43 -0400 Subject: [PATCH] fix(upload-core): fix for pending decryption status --- packages/upload-core/upload.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/upload-core/upload.js b/packages/upload-core/upload.js index 858f47976..6ae99878e 100644 --- a/packages/upload-core/upload.js +++ b/packages/upload-core/upload.js @@ -290,7 +290,10 @@ class Upload { if (uploadResult === 'encrypted') { // needs pw, isDecrypting, isScanning - if (!this.waitForPw && decryptResult === null) { + if ( + !this.waitForPw && + (decryptResult === null || decryptResult === 'pending') + ) { return { status: 'pending', message: msg || '' }; } if (decryptResult === 'rejected') {