Repository navigation
fix(conversations): return absolute contact avatar URLs from the public API - #1791
Merged
Merged
Conversation
…ic API The public conversations list and find returned raw storage keys for contact avatars, which API callers (mobile app, CLI, MCP) cannot resolve. Add an avatar finalizer that converts keys to public URLs when publicUrls is set, reading the tenant storage URL once per call.
…onversations Move createAvatarFinalizer to contacts/queries so contacts.list/get, broadcasts and conversations use the same rule. The tenant storage URL is now read lazily on the first stored key and then once per call, so empty pages and pages with only proxied avatars skip it. A contact that appears in several conversations on one page has its avatar resolved once.
…d shared token hashes Allow numeric suffixes on partition index names in the channel post metrics plan assertions, and give the replay-race test unique token hashes so it cannot collide with rows from sibling tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
conversations.list/conversations.findreturned raw storage keys for contact avatars, which API callers (mobile app, CLI, MCP) can't resolve.createAvatarFinalizer: withpublicUrls: trueit converts keys to absolute URLs (same rule ascontacts.list), reading the tenant storage URL once per call. The builder UI path keeps returning keys.Test plan
avatar-finalizer.test.tsunit testscheck-types(builder) via pre-commit hook