mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Interpret unknown phone number sharing setting as 'off'.
This commit is contained in:
committed by
Cody Henthorne
parent
c359ddf3c8
commit
879fca0e11
@@ -43,10 +43,9 @@ public final class PhoneNumberPrivacyValues extends SignalStoreValues {
|
||||
}
|
||||
|
||||
public boolean isPhoneNumberSharingEnabled() {
|
||||
// TODO [pnp] When we launch usernames, the default should return false
|
||||
return switch (getPhoneNumberSharingMode()) {
|
||||
case DEFAULT, EVERYBODY -> true;
|
||||
case NOBODY -> false;
|
||||
case EVERYBODY -> true;
|
||||
case DEFAULT, NOBODY -> false;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user