mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-06 23:54:19 +01:00
Extract AccountHelper
This commit is contained in:
@@ -669,6 +669,8 @@ public class DbusSignalImpl implements Signal {
|
||||
m.setRegistrationLockPin(Optional.empty());
|
||||
} catch (IOException e) {
|
||||
throw new Error.Failure("Remove pin error: " + e.getMessage());
|
||||
} catch (NotMasterDeviceException e) {
|
||||
throw new Error.Failure("This command doesn't work on linked devices.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -678,6 +680,8 @@ public class DbusSignalImpl implements Signal {
|
||||
m.setRegistrationLockPin(Optional.of(registrationLockPin));
|
||||
} catch (IOException e) {
|
||||
throw new Error.Failure("Set pin error: " + e.getMessage());
|
||||
} catch (NotMasterDeviceException e) {
|
||||
throw new Error.Failure("This command doesn't work on linked devices.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user