Fix type of device id to Integer

Fixes #889
This commit is contained in:
AsamK 2022-02-11 21:01:02 +01:00
parent fd8ba66509
commit 6dabf4550b
2 changed files with 2 additions and 2 deletions

View file

@ -169,7 +169,7 @@ public class DbusManagerImpl implements Manager {
return signal.listDevices().stream().map(d -> {
final var device = getRemoteObject(d.getObjectPath(),
Signal.Device.class).GetAll("org.asamk.Signal.Device");
return new Device(((Long) device.get("Id").getValue()).intValue(),
return new Device((Integer) device.get("Id").getValue(),
(String) device.get("Name").getValue(),
(long) device.get("Created").getValue(),
(long) device.get("LastSeen").getValue(),