webxdc / timetracking-webxdc

WIP xdc app for time tracking
GNU General Public License v3.0
5 stars 0 forks source link

Sometimes I get duplicated events #15

Closed Simon-Laux closed 1 year ago

Simon-Laux commented 1 year ago

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:

Bildschirmfoto 2023-07-01 um 19 13 40

See also https://github.com/deltachat/deltachat-desktop/issues/3296