From 4cc35c6676365a5988fbca99bad8e18f495ad98d Mon Sep 17 00:00:00 2001 From: merkost Date: Thu, 29 Jun 2023 22:28:44 +1000 Subject: [PATCH] Enables vcf contact file sharing to WhatsApp --- .../com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt index d586a0df..c71ff289 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt @@ -164,7 +164,8 @@ class VcfExporter { contactsExported++ } - Ezvcard.write(cards).version(VCardVersion.V4_0).go(outputStream) + // whatsapp does not support version 4.0 yet + Ezvcard.write(cards).version(VCardVersion.V3_0).go(outputStream) } catch (e: Exception) { activity.showErrorToast(e) }