mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Update dependencies
This commit is contained in:
parent
6d5cfa32e2
commit
6f7350d031
4 changed files with 10 additions and 8 deletions
|
@ -1,6 +1,5 @@
|
|||
package org.asamk.signal.manager;
|
||||
|
||||
import org.apache.http.util.TextUtils;
|
||||
import org.asamk.signal.AttachmentInvalidException;
|
||||
import org.signal.libsignal.metadata.certificate.CertificateValidator;
|
||||
import org.whispersystems.libsignal.IdentityKey;
|
||||
|
@ -25,6 +24,8 @@ import java.net.URLEncoder;
|
|||
import java.nio.file.Files;
|
||||
import java.util.*;
|
||||
|
||||
import static org.whispersystems.signalservice.internal.util.Util.isEmpty;
|
||||
|
||||
class Utils {
|
||||
|
||||
static List<SignalServiceAttachment> getSignalServiceAttachments(List<String> attachments) throws AttachmentInvalidException {
|
||||
|
@ -100,7 +101,7 @@ class Utils {
|
|||
String deviceIdentifier = query.get("uuid");
|
||||
String publicKeyEncoded = query.get("pub_key");
|
||||
|
||||
if (TextUtils.isEmpty(deviceIdentifier) || TextUtils.isEmpty(publicKeyEncoded)) {
|
||||
if (isEmpty(deviceIdentifier) || isEmpty(publicKeyEncoded)) {
|
||||
throw new RuntimeException("Invalid device link uri");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue