Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

fix: E2EE message content extraction for URLs and link attachments#4

Closed
Copilot wants to merge 1 commit intoe2ee-metadatafrom
copilot/sub-pr-3
Closed

fix: E2EE message content extraction for URLs and link attachments#4
Copilot wants to merge 1 commit intoe2ee-metadatafrom
copilot/sub-pr-3

Conversation

Copy link

Copilot AI commented Feb 1, 2026

E2EE messages containing URLs were returning empty content, and link attachment metadata was not being extracted from encrypted messages.

Changes

  • E2EE text extraction: Added fallback chain for ExtendedTextMessage (text → matchedText → canonicalURL) to ensure URL-containing messages have content
  • Armadillo message parsing: Added support for ExtendedContentMessage to extract link shares and extended content from special message types
  • Link attachment metadata: Extract title, description, and source domain from both ConsumerApplication and Armadillo message types
  • URL redirect handling: Parse actual URLs from Facebook's /l.php redirect links

Type definitions

Added fields to Attachment interface for link metadata:

interface Attachment {
  // For link attachments
  description?: string    // Link description/subtitle
  sourceText?: string     // Source domain text
}

Implementation details

  • extractE2EEText(): Extended to handle Armadillo messages with CTAs and canonical URLs
  • extractE2EEMessage(): Enhanced ExtendedTextMessage parsing to preserve text while creating link attachments
  • extractArmadilloLinkAttachment(): New helper to extract link metadata from Armadillo XMA messages

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI mentioned this pull request Feb 1, 2026
Copilot AI changed the title [WIP] Fix e2ee metadata issue fix: E2EE message content extraction for URLs and link attachments Feb 1, 2026
Copilot AI requested a review from aiko-chan-ai February 1, 2026 20:00
@aiko-chan-ai aiko-chan-ai deleted the copilot/sub-pr-3 branch February 1, 2026 20:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants