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