only show count when there is more than 1 of the same type

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent 4b6bfa4c4c
commit 93801e8d29

@ -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…
Cancel
Save