Skip to content

Remove jackson related for linkpreview#1931

Merged
SessionHero01 merged 2 commits intodevfrom
remove-jackson-linkpreview
Feb 13, 2026
Merged

Remove jackson related for linkpreview#1931
SessionHero01 merged 2 commits intodevfrom
remove-jackson-linkpreview

Conversation

@SessionHero01
Copy link
Collaborator

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request migrates link preview serialization from Jackson to kotlinx.serialization, aligning with the codebase's preferred serialization approach. It also converts the AttachmentId class from Java to Kotlin.

Changes:

  • Replaced Jackson annotations with kotlinx.serialization in LinkPreview class
  • Converted AttachmentId from Java to Kotlin data class with @serializable annotation
  • Updated MmsDatabase to use kotlinx.serialization for encoding/decoding link previews

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
LinkPreview.kt Converted from class to data class with @serializable annotation, removed Jackson dependencies, and made thumbnail property immutable
AttachmentId.kt New Kotlin data class replacing Java implementation, added @serializable and @parcelize annotations
AttachmentId.java Removed Java implementation in favor of Kotlin
MmsDatabase.kt Updated to use json.decodeFromString/encodeToString instead of Jackson, removed unused imports, improved error message accuracy

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SessionHero01 SessionHero01 merged commit 48388cc into dev Feb 13, 2026
5 checks passed
@SessionHero01 SessionHero01 deleted the remove-jackson-linkpreview branch February 13, 2026 00:36
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