Skip to content

Commit

Permalink
fix(ios): replace thumbnailImageData with imageData (#96)
Browse files Browse the repository at this point in the history
Closes #95
  • Loading branch information
tafelnl authored Jan 19, 2023
1 parent 1fcb66c commit 05b239b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Plugin/ContactPayload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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())"
}
}
}
Expand Down

0 comments on commit 05b239b

Please sign in to comment.