mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Implement multi account commands for dbus client
This commit is contained in:
parent
00cda598c8
commit
805f976d9e
12 changed files with 335 additions and 29 deletions
|
@ -20,8 +20,6 @@ public interface MultiAccountManager extends AutoCloseable {
|
|||
|
||||
ProvisioningManager getProvisioningManagerFor(URI deviceLinkUri);
|
||||
|
||||
ProvisioningManager getNewProvisioningManager();
|
||||
|
||||
RegistrationManager getNewRegistrationManager(String account) throws IOException;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -111,8 +111,7 @@ public class MultiAccountManagerImpl implements MultiAccountManager {
|
|||
return provisioningManagers.remove(deviceLinkUri);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProvisioningManager getNewProvisioningManager() {
|
||||
private ProvisioningManager getNewProvisioningManager() {
|
||||
return ProvisioningManager.init(dataPath, serviceEnvironment, userAgent, this::addManager);
|
||||
}
|
||||
|
||||
|
|
|
@ -243,7 +243,7 @@ public class RegistrationManagerImpl implements RegistrationManager {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
public void close() {
|
||||
if (account != null) {
|
||||
account.close();
|
||||
account = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue