forked from shadowfacts/Tusker
Save status draft while posting to prevent data loss due to crashes
Closes #33
This commit is contained in:
parent
d9abf3ec09
commit
006af1ab79
|
@ -431,6 +431,9 @@ class ComposeViewController: UIViewController {
|
|||
guard let text = statusTextView.text,
|
||||
!text.isEmpty else { return }
|
||||
|
||||
// save a draft before posting the status, so if a crash occurs during posting, the status won't be lost
|
||||
saveDraft()
|
||||
|
||||
// disable post button while sending post request
|
||||
postBarButtonItem.isEnabled = false
|
||||
|
||||
|
|
Loading…
Reference in New Issue