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

// FREEBIE
This commit is contained in:
Michael Kirk 2017-05-03 11:15:01 -04:00
parent 4b6bfa4c4c
commit 93801e8d29

View file

@ -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 =