Skip to content

Commit

Permalink
Persist all Report_AddComment actions (as well as attachments)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidroca committed Feb 2, 2022
1 parent ad87352 commit 425e718
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 425e718

Please sign in to comment.