From 425e718b9ed3ac485da1e86a11779941daa95ba5 Mon Sep 17 00:00:00 2001 From: Peter Velkov Date: Wed, 2 Feb 2022 17:19:34 +0200 Subject: [PATCH] Persist all `Report_AddComment` actions (as well as attachments) --- src/libs/actions/Report.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index aff30887392d..4edd2115dec4 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -1171,11 +1171,7 @@ function addAction(reportID, text, file) { file, reportComment: commentText, clientID: optimisticReportActionID, - - // The persist flag enables this request to be retried if we are offline and the app is completely killed. We do - // not retry attachments as we have no solution for storing them persistently and attachments can't be "lost" in - // the same way report actions can. - persist: !isAttachment, + persist: true, }) .then((response) => { if (response.jsonCode === 408) {