Skip to content

[BUG] Duplicate todo-item in widget after completing todo on a seperate device and syncing #2370

Description

@ada-0x1eaf

Describe the bug
When a todo is created on the remote caldav server by a seperate device (so NOT jtxBoard), and that todo is then synchronized to the jtxBoard app, if the todo is then completed on the seperate device and the completion is synced to the jtxBoard app, the todo-item will appear twice in the widget, both as completed and uncompleted, until the app is opened (at which point it will fix itself).

To Reproduce
Pre-condition: Have DAVx5 and jtxBoard installed. Have a DAVx5 "sync all"-widget and a jtxBoard todo-list widget present on the android device.

  1. On a separate device create a todo-item and export it to your caldav-server (I am using calcurse for this).
  2. On the android device with jtxBoard installed, synchronize with the caldav-server using the "sync all" widget so that the item is imported. Ensure that the new item is present in the todo-list widget.
  3. On the separate device, complete the item, and synchronize that device with the caldav-server again.
  4. Once again, synchronize the android device with the caldav-server using the "sync all" widget

Expected behavior
A single instance of the todo-item is present in the task-list widget, marked as completed.

Actual behavior
Two instances of the todo-item is present in the task-list widget, one is marked as completed, and the other is not. Opening the jtxBoard app using the "open app" button on the widget will clear the duplicate item.

Screenshots

Image Image The "test todo" item appears both as completed and not-completed in the widget.

Device and version

  • Device: Samsung Galaxy S23 FE
  • Android version: Android 16
  • jtx Board version: 2.17.00.gplay
  • Downloaded from: Google Play

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions