E532 fix(parser): detect iOS <attached: media messages by rodrigogs · Pull Request #76 · rodrigogs/whats-reader · GitHub
[go: up one dir, main page]

Skip to content

fix(parser): detect iOS <attached: media messages#76

Open
rodrigogs wants to merge 2 commits intodevfrom
fix/issue-75-ios-attached-media-indicator
Open

fix(parser): detect iOS <attached: media messages#76
rodrigogs wants to merge 2 commits intodevfrom
fix/issue-75-ios-attached-media-indicator

Conversation

@rodrigogs
Copy link
Owner

Summary

  • add iOS media marker <attached: to MEDIA_INDICATORS
  • include parser fixture for iOS attached syntax in examples/parser-tests
  • document iOS attached marker in parser test README

Why

Issue #75 reports media lines rendered as plain text like <attached: ...> in iOS exports, which prevents media linking and playback.

Validation

  • npm run check
  • runtime validation for issue-like samples confirmed false -> true detection when <attached: is present

Closes #75

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 PR fixes a parser bug where iOS WhatsApp export lines using the <attached: filename.ext> format were not being recognized as media messages, causing them to render as plain text instead of being linked and playable. The fix adds the <attached: prefix to the existing MEDIA_INDICATORS list, which is already used with a prefix/substring match, so the change correctly handles any <attached: …> content. A parser test fixture and README documentation update are also included.

Changes:

  • Added '<attached:' to MEDIA_INDICATORS in chat-parser.ts so iOS-format media lines are correctly flagged as media messages
  • Added examples/parser-tests/ios-attached-media-test.txt as a sample fixture containing iOS <attached:> lines for both audio and image
  • Updated examples/parser-tests/README.md to document the new iOS <attached:> indicator under "Media Indicators Supported"

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/lib/parser/chat-parser.ts Adds '<attached:' to MEDIA_INDICATORS to detect iOS-style attached media lines
examples/parser-tests/ios-attached-media-test.txt New fixture with iOS <attached:> messages (audio + image) for manual testing
examples/parser-tests/README.md Documents the new <attached:> media indicator in the supported indicators list

@rodrigogs
Copy link
Owner Author

@copilot open a new pull request to apply changes based on the comments in this thread

Lint and build before finishing.

Copy link
Contributor
Copilot AI commented Mar 9, 2026

@rodrigogs I've opened a new pull request, #77, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: rodrigogs <2362425+rodrigogs@users.noreply.github.com>
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

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

'<媒体省略>',
'<미디어 생략>',
'<Медиа пропущены>',
'<attached:',
Copy link
Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

The PR description states "Closes #75", but issue #75 is about voice transcription (Whisper), not about iOS <attached: media messages. This appears to be the wrong issue number referenced. If there is a separate issue tracking the <attached: iOS media bug, the correct issue number should be used. If there is no separate issue, the "Closes #75" reference should be removed from the PR description, as it will incorrectly close an unrelated issue upon merge.

Copilot uses AI. Check for mistakes.
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.

HOW TO: Voice transcription: Transcribe audio with Whisper (runs locally, 12+ languages)

3 participants

0