Add parameter to configure phone number privacy

This commit is contained in:
AsamK 2024-02-18 19:24:23 +01:00
parent 25258db55d
commit 6cd57312a1
11 changed files with 60 additions and 8 deletions

View file

@ -124,11 +124,16 @@ public class DbusManagerImpl implements Manager {
@Override
public void updateAccountAttributes(
final String deviceName, final Boolean unrestrictedUnidentifiedSender
final String deviceName,
final Boolean unrestrictedUnidentifiedSender,
final Boolean discoverableByNumber,
final Boolean numberSharing
) throws IOException {
if (deviceName != null) {
final var devicePath = signal.getThisDevice();
getRemoteObject(devicePath, Signal.Device.class).Set("org.asamk.Signal.Device", "Name", deviceName);
} else {
throw new UnsupportedOperationException();
}
}