From 441eddb74c7debac456870a80192f2ca9a8f4543 Mon Sep 17 00:00:00 2001 From: KoalaSat Date: Wed, 8 May 2024 23:40:59 +0200 Subject: [PATCH] fix(android): federation APK 4xx errors (#1279) --- .../app/src/main/java/com/robosats/modules/TorModule.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mobile/android/app/src/main/java/com/robosats/modules/TorModule.java b/mobile/android/app/src/main/java/com/robosats/modules/TorModule.java index 224bc5d81..1266b152b 100644 --- a/mobile/android/app/src/main/java/com/robosats/modules/TorModule.java +++ b/mobile/android/app/src/main/java/com/robosats/modules/TorModule.java @@ -83,11 +83,7 @@ public void onResponse(Call call, Response response) throws IOException { throw new RuntimeException(e); } }); - if (response.code() != 200 && response.code() != 201) { - Log.d("RobosatsError", "Request error code: " + response.code()); - } else if (response.isSuccessful()) { - promise.resolve("{\"json\":" + body + ", \"headers\": " + headersJson +"}"); - } + promise.resolve("{\"json\":" + body + ", \"headers\": " + headersJson +"}"); } }); }