mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Encrypt/decrypt device names
This commit is contained in:
parent
56ac648922
commit
6cb867cbeb
6 changed files with 70 additions and 21 deletions
|
@ -7,10 +7,10 @@ import org.asamk.signal.PlainTextWriterImpl;
|
|||
import org.asamk.signal.commands.exceptions.CommandException;
|
||||
import org.asamk.signal.commands.exceptions.IOErrorException;
|
||||
import org.asamk.signal.manager.Manager;
|
||||
import org.asamk.signal.manager.api.Device;
|
||||
import org.asamk.signal.util.DateUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.whispersystems.signalservice.api.messages.multidevice.DeviceInfo;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
@ -27,7 +27,7 @@ public class ListDevicesCommand implements LocalCommand {
|
|||
public void handleCommand(final Namespace ns, final Manager m) throws CommandException {
|
||||
final var writer = new PlainTextWriterImpl(System.out);
|
||||
|
||||
List<DeviceInfo> devices;
|
||||
List<Device> devices;
|
||||
try {
|
||||
devices = m.getLinkedDevices();
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue