mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 18:53:40 +00:00
add error code for 429: rate limit
This commit is contained in:
parent
51432a4655
commit
ff49363d53
@ -334,7 +334,7 @@ class Storage(context: Context, helper: SQLCipherOpenHelper) : Database(context,
|
|||||||
if (error.localizedMessage != null) {
|
if (error.localizedMessage != null) {
|
||||||
val message: String
|
val message: String
|
||||||
if (error is OnionRequestAPI.HTTPRequestFailedAtDestinationException && error.statusCode == 429) {
|
if (error is OnionRequestAPI.HTTPRequestFailedAtDestinationException && error.statusCode == 429) {
|
||||||
message = "Rate limited."
|
message = "429: Rate limited."
|
||||||
} else {
|
} else {
|
||||||
message = error.localizedMessage!!
|
message = error.localizedMessage!!
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user