mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
parent
ac8925b2bd
commit
c7aa9834a9
2 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue