mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Better relay handling.
This commit is contained in:
parent
fde8d32848
commit
7e926d08ac
@ -151,7 +151,7 @@ public class PushServiceSocket {
|
||||
public PreKeyEntity getPreKey(PushDestination destination) throws IOException {
|
||||
String path = String.format(PREKEY_PATH, destination.getNumber());
|
||||
|
||||
if (destination.getRelay() != null) {
|
||||
if (!Util.isEmpty(destination.getRelay())) {
|
||||
path = path + "?relay=" + destination.getRelay();
|
||||
}
|
||||
|
||||
@ -179,7 +179,7 @@ public class PushServiceSocket {
|
||||
public File retrieveAttachment(String relay, long attachmentId) throws IOException {
|
||||
String path = String.format(ATTACHMENT_PATH, String.valueOf(attachmentId));
|
||||
|
||||
if (relay != null) {
|
||||
if (!Util.isEmpty(relay)) {
|
||||
path = path + "?relay=" + relay;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user