Commit 492bfc0
committed
Suggestions: Adopt synced reject of a pending-insert instead of re-tagging
Rejecting a pending-insert suggestion dispatches a `removeBlock` to
undo the insert. When that lands on a peer client through sync,
batched with the marker-clearing `updateBlockAttributes`, the
removal-detection branch was treating the disappearance as a fresh
user delete — re-inserting the block and tagging it pending-remove.
That re-insert bounced back through sync and undid the reject on the
rejecting client a moment after they clicked.
Extend the apply-landing check to also recognize `pending-insert` in
the previous-tick tree snapshot. The marker presence means the
removal is the reject landing; adopt it.1 parent 60a8b52 commit 492bfc0
1 file changed
Lines changed: 22 additions & 15 deletions
Lines changed: 22 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
713 | 717 | | |
714 | 718 | | |
715 | 719 | | |
716 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
717 | 724 | | |
718 | 725 | | |
719 | 726 | | |
| |||
0 commit comments