mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-28 19:44:29 +01:00
Keep unrestricted unidentified access if it was set before
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user