mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Add extra conditions for the SMS banner.
This commit is contained in:
committed by
Alan Evans
parent
ae5f9fb8ac
commit
3739eb7731
@@ -110,6 +110,12 @@ public class PhoneNumberFormatter {
|
||||
}
|
||||
}
|
||||
|
||||
public static int getLocalCountryCode() {
|
||||
Optional<PhoneNumber> localNumber = get(ApplicationDependencies.getApplication()).localNumber;
|
||||
return localNumber != null && localNumber.isPresent() ? localNumber.get().countryCode : 0;
|
||||
}
|
||||
|
||||
|
||||
public String format(@Nullable String number) {
|
||||
if (number == null) return "Unknown";
|
||||
if (GroupId.isEncodedGroup(number)) return number;
|
||||
|
||||
Reference in New Issue
Block a user