A moved occurrence shows twice

Issue Description

A moved occurrence shows twice

Expected Behavior

that date shows once, at the new time.

Actual Behavior

it shows twice under the same id, at the old time and at the new time.

Reproduction Steps

1 Upload a weekly event with SEQUENCE:0.
2 Add a change for one occurrence that moves it by two hours, with SEQUENCE:1.
3 Query the range with expandRecurrences: true.

Stalwart Version

v0.16.x

Installation Method

Binary (Linux)

Database Backend

RocksDB

Blob Storage

RocksDB

Search Engine

Internal

Directory Backend

Internal

Additional Context

in calcard src/icalendar/dates.rs (lines 78 and 148), a changed occurrence only replaces the normal one when both have exactly the same SEQUENCE number. The standard matches them by date (RECURRENCE-ID) only.

I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.

on

I have searched this support forum (open and closed topics) and confirm this is not a duplicate.

on

This isn’t covered in the current docs. A community member or staff member will follow up.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

This has been fixed in the v1.0.0 branch some days ago but the change can’t be backported to v0.16 at the moment. v1.0.0 is expected for late October/early November.