mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Keep unrestricted unidentified access if it was set before
This commit is contained in:
parent
bb9d44811c
commit
2d60f98e93
1 changed files with 2 additions and 2 deletions
|
@ -1302,8 +1302,8 @@ public class SignalAccount implements Closeable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUnrestrictedUnidentifiedAccess() {
|
public boolean isUnrestrictedUnidentifiedAccess() {
|
||||||
// TODO make configurable
|
final var profile = getProfileStore().getProfile(getSelfRecipientId());
|
||||||
return false;
|
return profile != null && profile.getUnidentifiedAccessMode() == Profile.UnidentifiedAccessMode.UNRESTRICTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isDiscoverableByPhoneNumber() {
|
public boolean isDiscoverableByPhoneNumber() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue