Open ArnoldSmith86 opened 1 week ago
This seems hard to trigger, is the code too involved to plug into jsfiddle with some fake variables and try a bunch of deltas in receiveDelta()?
Using my phone and my laptop, I can trigger this pretty easily.. I'm pretty sure I'll get this to work soon.
I could also trigger it.
I think the detection is working as intended but it also crashes if the conflicting deltas are the other way around. Gotta add another test for that.
Huh. The conflict detection seems to work now but the client still has to handle the broken delta. It goes like this:
widgetA
.widgetA
.widgetA
anymore because it deleted it. :boom:
Fixes #2360. Fixes #27. I will build a room to test this. Should not be too hard.
Edit: I can still trigger the problem in the pr-test room. Edit 2: Still broken after second commit.
PR-SERVER-BOT: You can play around with it here: https://test.virtualtabletop.io/PR-2363/pr-test (or any other room on that server)