|
|
|
@ -246,6 +246,7 @@
|
|
|
|
|
|
|
|
|
|
+ (NSString *)examplePhoneNumberForCountryCode:(NSString *)countryCode
|
|
|
|
|
{
|
|
|
|
|
// Signal users are very likely using mobile devices, so prefer that kind of example.
|
|
|
|
|
NSError *error;
|
|
|
|
|
NBPhoneNumber *nbPhoneNumber =
|
|
|
|
|
[[[self sharedUtil] nbPhoneNumberUtil] getExampleNumberForType:countryCode
|
|
|
|
@ -253,6 +254,8 @@
|
|
|
|
|
error:&error];
|
|
|
|
|
OWSAssert(!error);
|
|
|
|
|
if (!nbPhoneNumber) {
|
|
|
|
|
// For countries that with similar mobile and land lines, use "line or mobile"
|
|
|
|
|
// examples.
|
|
|
|
|
nbPhoneNumber =
|
|
|
|
|
[[[self sharedUtil] nbPhoneNumberUtil] getExampleNumberForType:countryCode
|
|
|
|
|
type:NBEPhoneNumberTypeFIXED_LINE_OR_MOBILE
|
|
|
|
|