mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-19 13:18:02 +01:00
Update to libsignal v0.86.6
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user