when I start a new entry when there is already an open one, it should automatically stop the existing entry and start the new one. It works, but sometimes (at least on deltachat desktop) it starts 2 entries, but one of them is a ghost entry that goes away after restarting the webxdc.
Solution
One part of the problem is that the time tracking xdc processes startEntry actions even when the id is already known, so we should add a check to prevent that.
There also seems to be a race-issue in desktop's webxdc implementation when sending multiple status updates at once:
when I start a new entry when there is already an open one, it should automatically stop the existing entry and start the new one. It works, but sometimes (at least on deltachat desktop) it starts 2 entries, but one of them is a ghost entry that goes away after restarting the webxdc.
Solution
One part of the problem is that the time tracking xdc processes startEntry actions even when the id is already known, so we should add a check to prevent that.
There also seems to be a race-issue in desktop's webxdc implementation when sending multiple status updates at once:
See also https://github.com/deltachat/deltachat-desktop/issues/3296