Skip to content

fix(whatsapp): import Apple ChatStorage message type 7 - #813

Merged
wesm merged 1 commit into
kenn-io:mainfrom
rodboev:pr/370-apple-type-7-text
Sep 9, 2026
Merged

wesm merged 1 commit into
kenn-io:mainfrom
rodboev:pr/370-apple-type-7-text

Conversation

@rodboev

@rodboev rodboev commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

The Apple WhatsApp importer now archives nonblank ZWAMESSAGE rows with ZMESSAGETYPE = 7, including their message bodies, raw source data and full-text search entries. The existing Apple importer accepted only type 0, even though the type 7 rows in the archive reported by dimatosj contain ordinary text.

The fix widens the Apple text guard and its duplicate stanza check together. When a type 0 row and a type 7 row share a stanza ID across chats, the duplicate pre-scan skips both rows and reports the existing duplicate error instead of letting the type 0 row win. Apple type 1 captions and other unsupported types remain skipped, blank text and stanza IDs remain skipped, and Android type 7 system messages keep their existing behavior. This builds on the Apple ChatStorage importer from #706 .

Closes #370

@roborev-ci

roborev-ci Bot commented Sep 8, 2026

Copy link
Copy Markdown

roborev: Combined Review (d0f6390)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 1m8s

@roborev-ci

roborev-ci Bot commented Sep 9, 2026

Copy link
Copy Markdown

roborev: Combined Review (e7f014e)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 3m14s

@wesm wesm self-assigned this Sep 9, 2026
@roborev-ci

roborev-ci Bot commented Sep 9, 2026

Copy link
Copy Markdown

roborev: Combined Review (98ae3a9)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 2m50s

Apple URL messages with non-empty text were silently skipped. Import
those messages and apply the same type filter when detecting duplicate
stanza IDs, so mixed text and URL duplicates cannot silently win.

- fix(whatsapp): assert the blank stanza fixture value
- fix(whatsapp): satisfy testify boolean assertions
- docs(whatsapp): explain Apple URL message imports

Generated with Codex
Co-authored-by: Wes McKinney <wesmckinn+git@gmail.com>
Co-authored-by: Codex <noreply@openai.com>
@wesm
wesm force-pushed the pr/370-apple-type-7-text branch from 98ae3a9 to ec80918 Compare September 9, 2026 14:41
@roborev-ci

roborev-ci Bot commented Sep 9, 2026

Copy link
Copy Markdown

roborev: Combined Review (ec80918)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 1m0s

@wesm
wesm merged commit 331ed55 into kenn-io:main Sep 9, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

ios Whatsapp: 'message' table not found

2 participants