Skip to content

[ML 0.5/MVI.02.3] Implement LocalMessageUidPrefixProvider #10511

@rafaeltonholo

Description

@rafaeltonholo

Description

Implement the LocalMessageUidPrefixProvider logic to retrieve the system-wide prefix used for messages that have not yet been synced with the server.

Goal

Decouple the deletion logic from legacy global constants (like K9.LOCAL_UID_PREFIX), allowing for cleaner testing and dependency injection.

Acceptance Criteria

  • Correctly identifies messages generated locally that do not yet have a server-assigned UID.
  • Replace direct calls from K9.LOCAL_UID_PREFIX to the newly created LocalMessageUidPrefixProvider.get()
  • Testing: Unit tests verifying prefix detection across various message UID formats.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIdeal for newcomers to start contributingtype: enhancementNew features or improvements to existing features.

    Type

    Priority

    None yet

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions