Keep unrestricted unidentified access if it was set before

This commit is contained in:
AsamK 2022-05-18 10:45:53 +02:00
parent bb9d44811c
commit 2d60f98e93

View file

@ -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() {