Skip to content

Commit

Permalink
Use correct kABPersonOrganizationProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanOng committed Jun 23, 2016
1 parent 7527e61 commit 287525c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/RCTContacts/RCTContacts.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ -(NSDictionary*) dictionaryRepresentationForABPerson:(ABRecordRef) person
NSString *givenName = (__bridge_transfer NSString *)(ABRecordCopyValue(person, kABPersonFirstNameProperty));
NSString *familyName = (__bridge_transfer NSString *)(ABRecordCopyValue(person, kABPersonLastNameProperty));
NSString *middleName = (__bridge_transfer NSString *)(ABRecordCopyValue(person, kABPersonMiddleNameProperty));
NSString *company = (__bridge_transfer NSString *)(ABRecordCopyValue(person, kABPersonCompanyProperty));
NSString *company = (__bridge_transfer NSString *)(ABRecordCopyValue(person, kABPersonOrganizationProperty));
NSString *jobTitle = (__bridge_transfer NSString *)(ABRecordCopyValue(person, kABPersonJobTitleProperty));

[contact setObject: recordID forKey: @"recordID"];
Expand Down Expand Up @@ -236,7 +236,7 @@ -(void) updateRecord:(ABRecordRef)record onAddressBook:(ABAddressBookRef)address
ABRecordSetValue(record, kABPersonFirstNameProperty, (__bridge CFStringRef) givenName, &error);
ABRecordSetValue(record, kABPersonLastNameProperty, (__bridge CFStringRef) familyName, &error);
ABRecordSetValue(record, kABPersonMiddleNameProperty, (__bridge CFStringRef) middleName, &error);
ABRecordSetValue(record, kABPersonCompanyProperty, (__bridge CFStringRef) company, &error);
ABRecordSetValue(record, kABPersonOrganizationProperty, (__bridge CFStringRef) company, &error);
ABRecordSetValue(record, kABPersonJobTitleProperty, (__bridge CFStringRef) jobTitle, &error);

ABMutableMultiValueRef multiPhone = ABMultiValueCreateMutable(kABMultiStringPropertyType);
Expand Down

0 comments on commit 287525c

Please sign in to comment.