Skip to content

feat: re-export ChatStorage and make storage_config fallible#154

Draft
osmaczko wants to merge 1 commit into
mainfrom
fix/privatev1-message-delivery
Draft

feat: re-export ChatStorage and make storage_config fallible#154
osmaczko wants to merge 1 commit into
mainfrom
fix/privatev1-message-delivery

Conversation

@osmaczko

@osmaczko osmaczko commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Two small ergonomic changes to the logos-chat client crate, needed by callers
(logos-chat-module) that build an encrypted store and want to talk only to
logos-chat without depending on libchat directly.

  • Re-export ChatStorage from logos-chat so callers can name the store type
    without a direct libchat dependency.
  • ChatClientBuilder::storage_config now returns Result<_, ChatError> instead
    of .expect(), so an unopenable database surfaces as an error rather than
    aborting the process under panic = "abort". Updates the chat-cli callers.

(Re-scoped from the earlier PrivateV1 message-delivery change, which is dropped:
logos-chat-module is moving to DirectV1, where senders are MLS-bound and the
PrivateV1 drop does not arise.)

@jazzz

jazzz commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

FYI: PrivateV1 is End of life, and will be removed from the codebase in favor of DirectV1 once Client is compatible with InboxV2 registrations.

Callers that build an encrypted store had to depend on `libchat` directly for
`ChatStorage`, and `ChatClientBuilder::storage_config` panicked on a bad config,
which aborts the process under `panic = "abort"`.

- Re-export `ChatStorage` from logos-chat so callers can name the store type
  without a direct `libchat` dependency.
- `storage_config` now returns `Result<_, ChatError>` instead of `.expect()`, so
  an unopenable database surfaces as an error. Updates the chat-cli callers.
@osmaczko osmaczko force-pushed the fix/privatev1-message-delivery branch from ab51612 to 443a26d Compare June 26, 2026 20:57
@osmaczko osmaczko changed the title fix: deliver anonymous PrivateV1 messages to applications feat: re-export ChatStorage and make storage_config fallible Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants