|
|
@ -75,9 +75,7 @@ object FileServerAPIV2 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (request.useOnionRouting) {
|
|
|
|
if (request.useOnionRouting) {
|
|
|
|
val publicKey = MessagingModuleConfiguration.shared.storage.getOpenGroupPublicKey(DEFAULT_SERVER)
|
|
|
|
return OnionRequestAPI.sendOnionRequest(requestBuilder.build(), DEFAULT_SERVER, DEFAULT_SERVER_PUBLIC_KEY)
|
|
|
|
?: return Promise.ofFail(OpenGroupAPIV2.Error.NO_PUBLIC_KEY)
|
|
|
|
|
|
|
|
return OnionRequestAPI.sendOnionRequest(requestBuilder.build(), DEFAULT_SERVER, publicKey)
|
|
|
|
|
|
|
|
.fail { e ->
|
|
|
|
.fail { e ->
|
|
|
|
Log.e("Loki", "FileServerV2 failed with error",e)
|
|
|
|
Log.e("Loki", "FileServerV2 failed with error",e)
|
|
|
|
}
|
|
|
|
}
|
|
|
|