Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't override DraftReply.send_status based on application-level…
… state Since #750, application-level state transitions (logging in, logging out, and switching into offline mode) call securedrop_client.storage.mark_all_pending_draft_replies(). However, one or more SendReplyJobs (and their underlying POSTs requests to "/sources/<source_uuid/replies") may be in flight on the network at that time, whether or not the application is connected (or even running) to receive their responses. It's up to a given SendReplyJob to raise an exception if it's failed; the state of a given DraftReply can't be determined, or meaningfully overriden, by an application-level event.
- Loading branch information