mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-01 21:34:34 +01:00
Refactor dbus linked devices interface
Export a separate dbus object for each device
This commit is contained in:
@@ -117,7 +117,7 @@ public interface Manager extends Closeable {
|
||||
|
||||
List<Device> getLinkedDevices() throws IOException;
|
||||
|
||||
void removeLinkedDevices(int deviceId) throws IOException;
|
||||
void removeLinkedDevices(long deviceId) throws IOException;
|
||||
|
||||
void addDeviceLink(URI linkUri) throws IOException, InvalidKeyException;
|
||||
|
||||
|
||||
@@ -414,7 +414,7 @@ public class ManagerImpl implements Manager {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeLinkedDevices(int deviceId) throws IOException {
|
||||
public void removeLinkedDevices(long deviceId) throws IOException {
|
||||
dependencies.getAccountManager().removeDevice(deviceId);
|
||||
var devices = dependencies.getAccountManager().getDevices();
|
||||
account.setMultiDevice(devices.size() > 1);
|
||||
|
||||
Reference in New Issue
Block a user