Skip to content

Commit

Permalink
Merge pull request #7520 from kidroca/kidroca/feature/persist-attachm…
Browse files Browse the repository at this point in the history
…ent-uploads
  • Loading branch information
thienlnam authored Feb 2, 2022
2 parents 1860b59 + 425e718 commit dc9b289
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dc9b289

Please sign in to comment.