From 05b239b30c258eb27468a2f024bdd9654b048186 Mon Sep 17 00:00:00 2001 From: Tafel <35837839+tafelnl@users.noreply.github.com> Date: Thu, 19 Jan 2023 10:36:56 +0100 Subject: [PATCH] fix(ios): replace `thumbnailImageData` with `imageData` (#96) Closes #95 --- ios/Plugin/ContactPayload.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/Plugin/ContactPayload.swift b/ios/Plugin/ContactPayload.swift index 8aab611..0b554f9 100644 --- a/ios/Plugin/ContactPayload.swift +++ b/ios/Plugin/ContactPayload.swift @@ -152,8 +152,8 @@ public class ContactPayload { // Image if contact.isKeyAvailable(CNContactImageDataKey) { - if let thumbnailImage = contact.thumbnailImageData { - self.image["base64String"] = "data:image/png;base64,\(thumbnailImage.base64EncodedString())" + if let image = contact.imageData { + self.image["base64String"] = "data:image/png;base64,\(image.base64EncodedString())" } } }