Update to libsignal v0.86.6
This commit is contained in:
parent
31d6ac71a4
commit
730e0205f8
10
pom.xml
10
pom.xml
@ -14,6 +14,14 @@
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>signal-build-artifacts</id>
|
||||
<name>Signal Build Artifacts</name>
|
||||
<url>https://build-artifacts.signal.org/libraries/maven</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<pluginRepositories>
|
||||
@ -286,7 +294,7 @@
|
||||
<dependency>
|
||||
<groupId>org.signal</groupId>
|
||||
<artifactId>libsignal-server</artifactId>
|
||||
<version>0.80.3</version>
|
||||
<version>0.86.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.signal</groupId>
|
||||
|
||||
@ -21,9 +21,9 @@ import java.util.Set;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.Nullable;
|
||||
import kotlin.Pair;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.signal.libsignal.protocol.SealedSenderMultiRecipientMessage;
|
||||
import org.signal.libsignal.protocol.util.Pair;
|
||||
import org.whispersystems.textsecuregcm.controllers.MismatchedDevices;
|
||||
import org.whispersystems.textsecuregcm.controllers.MismatchedDevicesException;
|
||||
import org.whispersystems.textsecuregcm.controllers.MultiRecipientMismatchedDevicesException;
|
||||
@ -186,7 +186,7 @@ public class MessageSender {
|
||||
final ServiceIdentifier serviceIdentifier = ServiceIdentifier.fromLibsignal(serviceId);
|
||||
|
||||
final Map<Byte, Integer> registrationIdsByDeviceId = recipient.getDevicesAndRegistrationIds()
|
||||
.collect(Collectors.toMap(Pair::first, pair -> (int) pair.second()));
|
||||
.collect(Collectors.toMap(Pair::getFirst, pair -> (int) pair.getSecond()));
|
||||
|
||||
getMismatchedDevices(account, serviceIdentifier, registrationIdsByDeviceId, NO_EXCLUDED_DEVICE_ID)
|
||||
.ifPresent(mismatchedDevices ->
|
||||
|
||||
@ -7,8 +7,8 @@ package org.whispersystems.textsecuregcm.util;
|
||||
import java.util.Map;
|
||||
|
||||
public record Pair<T1, T2>(T1 first, T2 second) {
|
||||
public Pair(org.signal.libsignal.protocol.util.Pair<T1, T2> p) {
|
||||
this(p.first(), p.second());
|
||||
public Pair(kotlin.Pair<T1, T2> p) {
|
||||
this(p.getFirst(), p.getSecond());
|
||||
}
|
||||
|
||||
public Pair(Map.Entry<T1, T2> e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user