Repository navigation
Commit 23a1eea
fix(mobile): a resend during send-failure recovery no longer leaves a stale error
Recovery used to set the error only after it finished persisting the restored
draft. The restored text is visible before that, so a user could resend it in
the gap, clearing the error, and recovery would then set it again even though
the resend went through.
The error is now set before the merge publishes the text, so a resend always
comes after it and clears it. Each path where recovery backs out withdraws
the error it set.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 6dac48d commit 23a1eea
2 files changed
Lines changed: 51 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| |||
759 | 763 | | |
760 | 764 | | |
761 | 765 | | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
762 | 802 | | |
763 | 803 | | |
764 | 804 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
483 | 490 | | |
484 | 491 | | |
485 | 492 | | |
| |||
499 | 506 | | |
500 | 507 | | |
501 | 508 | | |
| 509 | + | |
502 | 510 | | |
503 | 511 | | |
504 | 512 | | |
| |||
527 | 535 | | |
528 | 536 | | |
529 | 537 | | |
| 538 | + | |
530 | 539 | | |
531 | 540 | | |
532 | 541 | | |
| |||
539 | 548 | | |
540 | 549 | | |
541 | 550 | | |
| 551 | + | |
542 | 552 | | |
543 | 553 | | |
544 | 554 | | |
| |||
553 | 563 | | |
554 | 564 | | |
555 | 565 | | |
556 | | - | |
557 | | - | |
558 | 566 | | |
559 | 567 | | |
560 | 568 | | |
| |||
0 commit comments