Skip to content

fix: persist MediaInfo.full_url in MessageStore#28

Merged
Oaklight merged 2 commits into
masterfrom
worktree-fix+25-persist-full-url
Apr 8, 2026
Merged

fix: persist MediaInfo.full_url in MessageStore#28
Oaklight merged 2 commits into
masterfrom
worktree-fix+25-persist-full-url

Conversation

@Oaklight
Copy link
Copy Markdown
Owner

@Oaklight Oaklight commented Apr 8, 2026

Summary

  • Add full_url to _serialize_media_info() and _deserialize_media_info() in _store.py
  • Messages loaded from SQLite now retain the server-provided CDN download URL
  • Old stored data without full_url gracefully defaults to empty string (no migration needed)

Test plan

  • Roundtrip tests for all 4 media types (image, voice, file, video)
  • Store → get_by_id roundtrip preserves full_url
  • Backward compatibility: legacy data without full_url deserializes to ""
  • Full test suite: 358 passed

Closes #25

@Oaklight Oaklight merged commit e622c46 into master Apr 8, 2026
6 checks passed
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.

Persist full_url in MessageStore for CDN downloads

1 participant