X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/bb342babba6bf716375ef4ba65919f80258aa29f..35c00f1b2a7376a28714bd191a27fe75454d59aa:/src/main/java/org/asamk/signal/Manager.java diff --git a/src/main/java/org/asamk/signal/Manager.java b/src/main/java/org/asamk/signal/Manager.java index 8a606edd..09677548 100644 --- a/src/main/java/org/asamk/signal/Manager.java +++ b/src/main/java/org/asamk/signal/Manager.java @@ -64,6 +64,7 @@ import org.whispersystems.signalservice.api.util.PhoneNumberFormatter; import org.whispersystems.signalservice.api.util.SleepTimer; import org.whispersystems.signalservice.api.util.UptimeSleepTimer; import org.whispersystems.signalservice.internal.configuration.SignalCdnUrl; +import org.whispersystems.signalservice.internal.configuration.SignalContactDiscoveryUrl; import org.whispersystems.signalservice.internal.configuration.SignalServiceConfiguration; import org.whispersystems.signalservice.internal.configuration.SignalServiceUrl; import org.whispersystems.signalservice.internal.push.SignalServiceProtos; @@ -95,7 +96,8 @@ class Manager implements Signal { private final static TrustStore TRUST_STORE = new WhisperTrustStore(); private final static SignalServiceConfiguration serviceConfiguration = new SignalServiceConfiguration( new SignalServiceUrl[]{new SignalServiceUrl(URL, TRUST_STORE)}, - new SignalCdnUrl[]{new SignalCdnUrl(CDN_URL, TRUST_STORE)} + new SignalCdnUrl[]{new SignalCdnUrl(CDN_URL, TRUST_STORE)}, + new SignalContactDiscoveryUrl[0] ); public final static String PROJECT_NAME = Manager.class.getPackage().getImplementationTitle(); @@ -827,7 +829,7 @@ class Manager implements Signal { List groups = getGroups(); List ids = new ArrayList(groups.size()); for (GroupInfo group : groups) { - ids.add(group.groupId); + ids.add(group.groupId); } return ids; } @@ -1500,7 +1502,7 @@ class Manager implements Signal { out.write(new DeviceGroup(record.groupId, Optional.fromNullable(record.name), new ArrayList<>(record.members), createGroupAvatarAttachment(record.groupId), record.active, Optional.fromNullable(info != null ? info.messageExpirationTime : null), - Optional.fromNullable(record.color))); + Optional.fromNullable(record.color), false)); } }