Nextcloud Integration: Uploading a file resets Calendar configuration

REPRODUCIBILITY: 100%
BUILD ID: 3.4.0.24
HARDWARE: Xperia X
UI LANGUAGE: German
REGRESSION: unknown

DESCRIPTION:

Every time I upload a file to Nextcloud (via sharing e.g. a photo from Gallery to my Nextcloud account), the configuration for displayed calendars in the Calendar is reset to show all available CalDAV subscriptions.

I have a handful of calendars (for example Nextclouds built-in Birthday calendar) that I don’t want to be displayed on my Sailfish Calendar.
This means either I’ll have to refrain from using the upload feature of the Nextcloud Integration or live with multiplied and duplicated calendar events.

PRECONDITIONS:

Configured Nextcloud account with at least calendar and sharing features enabled.

STEPS TO REPRODUCE:

  1. Select calendars to be hidden in Sailfish Calendar
  2. Share a photo (probably any shareable file should do) to the Nextcloud account
  3. Wait for the upload to be finished
  4. After a minute or so close and reopen Calendar

EXPECTED RESULT:

Only events from calendars previously enabled should show in Calendar

ACTUAL RESULT:

All available CalDAV calendars are reenabled