autopush-rs icon indicating copy to clipboard operation
autopush-rs copied to clipboard

Remove legacy notification support

Open data-sync-user opened this issue 7 months ago • 0 comments

parse_chidmessageid includes old code paths for parsing legacy notification chidmessageid formats. This along with similar code in autoush-common’s Notification::chidmessageid and RangeKey::legacy_version should be removed as we no longer support these types of notifications.

Alongside the removal from Notification I think this struct could further enforce topic vs timestamp messages (without the need to support legacy types) by converting the topic and sortkey_timestamp fields into an enum:

struct Notification {
    ...
    ntype: NotificationType,
}

enum NotificationType {
    Topic(String),
    Timestamp(u64),
}

┆Issue is synchronized with this Jira Task

data-sync-user avatar May 21 '25 18:05 data-sync-user