fix: don't treat 404 as bad snode

This commit is contained in:
0x330a 2023-06-15 17:14:45 +10:00
parent e13c401b9d
commit 155120716a
No known key found for this signature in database
GPG Key ID: 267811D6E6A2698C
2 changed files with 5 additions and 1 deletions

View File

@ -159,7 +159,7 @@ dependencies {
testImplementation 'org.robolectric:shadows-multidex:4.4'
}
def canonicalVersionCode = 340
def canonicalVersionCode = 341
def canonicalVersionName = "1.17.0"
def postFixSize = 10

View File

@ -896,6 +896,10 @@ object SnodeAPI {
Log.d("Loki", "Got a 421 without an associated public key.")
}
}
404 -> {
Log.d("Loki", "404, probably no file found")
return Error.Generic
}
else -> {
handleBadSnode()
Log.d("Loki", "Unhandled response code: ${statusCode}.")