mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
only show count when there is more than 1 of the same type
// FREEBIE
This commit is contained in:
parent
4b6bfa4c4c
commit
93801e8d29
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ void onAddressBookChanged(ABAddressBookRef notifyAddressBook, CFDictionaryRef in
|
|||
}
|
||||
|
||||
OWSAssert([phoneNumbersOfTheSameType containsObject:recipientId]);
|
||||
if (phoneNumbersOfTheSameType.count > 0) {
|
||||
if (phoneNumbersOfTheSameType.count > 1) {
|
||||
NSUInteger index =
|
||||
[[phoneNumbersOfTheSameType sortedArrayUsingSelector:@selector(compare:)] indexOfObject:recipientId];
|
||||
phoneNumberLabel =
|
||||
|
|
Loading…
Reference in a new issue