import org.whispersystems.libsignal.NoSessionException;
import org.whispersystems.libsignal.SignalProtocolAddress;
import org.whispersystems.libsignal.protocol.DecryptionErrorMessage;
-import org.whispersystems.libsignal.util.guava.Optional;
import org.whispersystems.signalservice.api.SignalServiceMessageSender;
import org.whispersystems.signalservice.api.crypto.ContentHint;
import org.whispersystems.signalservice.api.crypto.UnidentifiedAccess;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
+import java.util.Optional;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
final var result = handleSendMessage(recipientId,
(messageSender, address, unidentifiedAccess) -> messageSender.sendRetryReceipt(address,
unidentifiedAccess,
- groupId.transform(GroupId::serialize),
+ groupId.map(GroupId::serialize),
errorMessage));
handleSendMessageResult(result);
return result;
timestamp,
messageSendLogEntry.content(),
messageSendLogEntry.contentHint(),
- Optional.absent()));
+ Optional.empty()));
}
final var groupId = messageSendLogEntry.groupId().get();
}
final var access = context.getUnidentifiedAccessHelper().getAccessFor(recipientId);
- if (!access.isPresent() || !access.get().getTargetUnidentifiedAccess().isPresent()) {
+ if (access.isEmpty() || access.get().getTargetUnidentifiedAccess().isEmpty()) {
continue;
}