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() {
|
||||
// TODO make configurable
|
||||
return false;
|
||||
final var profile = getProfileStore().getProfile(getSelfRecipientId());
|
||||
return profile != null && profile.getUnidentifiedAccessMode() == Profile.UnidentifiedAccessMode.UNRESTRICTED;
|
||||
}
|
||||
|
||||
public boolean isDiscoverableByPhoneNumber() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue