mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Return a Manager from ProvisioningManager and RegistrationManager when finished
This commit is contained in:
parent
a7b414a870
commit
2935b96070
4 changed files with 49 additions and 23 deletions
|
@ -38,8 +38,9 @@ public class LinkCommand implements ProvisioningCommand {
|
|||
}
|
||||
try {
|
||||
writer.println("{}", m.getDeviceLinkUri());
|
||||
var username = m.finishDeviceLink(deviceName);
|
||||
writer.println("Associated with: {}", username);
|
||||
try (var manager = m.finishDeviceLink(deviceName)) {
|
||||
writer.println("Associated with: {}", manager.getUsername());
|
||||
}
|
||||
} catch (TimeoutException e) {
|
||||
throw new UserErrorException("Link request timed out, please try again.");
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue