mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-29 03:54:27 +01:00
@@ -96,7 +96,7 @@ public class UnidentifiedAccessHelper {
|
||||
|
||||
private byte[] getSenderCertificateFor(final RecipientId recipientId) {
|
||||
final var sharingMode = account.getConfigurationStore().getPhoneNumberSharingMode();
|
||||
if (sharingMode == PhoneNumberSharingMode.EVERYBODY || (
|
||||
if (sharingMode == null || sharingMode == PhoneNumberSharingMode.EVERYBODY || (
|
||||
sharingMode == PhoneNumberSharingMode.CONTACTS
|
||||
&& account.getContactStore().getContact(recipientId) != null
|
||||
)) {
|
||||
|
||||
@@ -1545,7 +1545,8 @@ public class SignalAccount implements Closeable {
|
||||
}
|
||||
|
||||
public boolean isDiscoverableByPhoneNumber() {
|
||||
return configurationStore.getPhoneNumberUnlisted() == null || !configurationStore.getPhoneNumberUnlisted();
|
||||
final var phoneNumberUnlisted = configurationStore.getPhoneNumberUnlisted();
|
||||
return phoneNumberUnlisted == null || !phoneNumberUnlisted;
|
||||
}
|
||||
|
||||
public void finishRegistration(final ACI aci, final PNI pni, final MasterKey masterKey, final String pin) {
|
||||
|
||||
Reference in New Issue
Block a user