Encrypt/decrypt device names

This commit is contained in:
AsamK 2021-05-08 19:31:09 +02:00
parent 56ac648922
commit 6cb867cbeb
6 changed files with 70 additions and 21 deletions

View file

@ -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) {