Skip to content

Commit

Permalink
Rename nickname to just nick for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregzo committed Jun 11, 2024
1 parent 6ce2be4 commit 9122337
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pickContact(options: PickContactOptions) => Promise<PickContactResult>
| **`family`** | <code>string \| null</code> |
| **`prefix`** | <code>string \| null</code> |
| **`suffix`** | <code>string \| null</code> |
| **`nickname`** | <code>string \| null</code> |
| **`nick`** | <code>string \| null</code> |


#### OrganizationPayload
Expand Down Expand Up @@ -278,7 +278,7 @@ pickContact(options: PickContactOptions) => Promise<PickContactResult>
| **`family`** | <code>string \| null</code> |
| **`prefix`** | <code>string \| null</code> |
| **`suffix`** | <code>string \| null</code> |
| **`nickname`** | <code>string \| null</code> |
| **`nick`** | <code>string \| null</code> |


#### OrganizationInput
Expand Down
2 changes: 1 addition & 1 deletion ios/Plugin/ContactPayload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class ContactPayload {
self.name["family"] = contact.familyName
self.name["prefix"] = contact.namePrefix
self.name["suffix"] = contact.nameSuffix
self.name["nickname"] = contact.nickname
self.name["nick"] = contact.nickname
}

// Organization
Expand Down
4 changes: 2 additions & 2 deletions ios/Plugin/Contacts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ public class Contacts: NSObject {
if let nameSuffix = contactInput.nameSuffix {
newContact.nameSuffix = nameSuffix
}
if let nameNickname = contactInput.nameNickname {
newContact.nickname = nameNickname
if let nameNick = contactInput.nameNick {
newContact.nickname = nameNick
}

// Organization
Expand Down
4 changes: 2 additions & 2 deletions ios/Plugin/CreateContactInput.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class CreateContactInput {
public var nameFamily: String?
public var namePrefix: String?
public var nameSuffix: String?
public var nameNickname: String?
public var nameNick: String?

// Organization
public var organizationName: String?
Expand Down Expand Up @@ -45,7 +45,7 @@ public class CreateContactInput {
self.nameFamily = nameObject["family"] as? String
self.namePrefix = nameObject["prefix"] as? String
self.nameSuffix = nameObject["suffix"] as? String
self.nameNickname = nameObject["nickname"] as? String
self.nameNick = nameObject["nick"] as? String
}

// Organization
Expand Down

0 comments on commit 9122337

Please sign in to comment.