Commit c266209
committed
REST API/RTC: Fix divergence when two offline users reconnect.
Prevent Real-Time Collaboration sessions from becoming out of sync when an offline editor returns to an online state. The change ensures that the updates are merged rather than discarded when each client is at a different cursor after reconnecting or experiencing slow network conditions.
Reviewed by ramonopoly.
Merges r62298 to the 7.0 branch.
Props alecgeatches, peterwilsoncc, maxschmeling, joefusco.
See #64622.
git-svn-id: https://develop.svn.wordpress.org/branches/7.0@62304 602fd350-edb4-49c9-b593-d223f7449a821 parent 9eaf876 commit c266209
2 files changed
Lines changed: 36 additions & 11 deletions
File tree
- src/wp-includes/collaboration
- tests/phpunit/tests/rest-api
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | | - | |
502 | | - | |
503 | | - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
504 | 509 | | |
505 | 510 | | |
506 | 511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
939 | | - | |
| 939 | + | |
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| |||
966 | 966 | | |
967 | 967 | | |
968 | 968 | | |
969 | | - | |
970 | | - | |
971 | | - | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
972 | 977 | | |
973 | 978 | | |
974 | 979 | | |
| |||
981 | 986 | | |
982 | 987 | | |
983 | 988 | | |
984 | | - | |
985 | | - | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
986 | 995 | | |
987 | 996 | | |
988 | 997 | | |
989 | 998 | | |
990 | | - | |
| 999 | + | |
991 | 1000 | | |
| 1001 | + | |
992 | 1002 | | |
993 | | - | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
994 | 1014 | | |
995 | 1015 | | |
996 | 1016 | | |
| |||
0 commit comments