mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
text/x-vcard shares carrying MIME parameters (e.g. ";charset=utf-8") or different casing failed the exact-match check and fell into the content branch, pasting a raw .vcf file path into the composer body instead of attaching the contact. Normalize the MIME type (strip parameters, trim, lowercase) before matching. Expose the share handler as visibleForTesting and add controller tests for vCard / text-plain / text-html routing, plus manager coverage that an EventChannel error is swallowed and later shares still deliver.