mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Rename /v2/backup to /v2/svr.
This commit is contained in:
@@ -106,7 +106,7 @@ class RegistrationApi(
|
|||||||
/**
|
/**
|
||||||
* Validates the provided SVR2 auth credentials, returning information on their usability.
|
* Validates the provided SVR2 auth credentials, returning information on their usability.
|
||||||
*
|
*
|
||||||
* `POST /v2/backup/auth/check`
|
* `POST /v2/svr/auth/check`
|
||||||
*/
|
*/
|
||||||
fun validateSvr2AuthCredential(e164: String, usernamePasswords: List<String>): NetworkResult<BackupV2AuthCheckResponse> {
|
fun validateSvr2AuthCredential(e164: String, usernamePasswords: List<String>): NetworkResult<BackupV2AuthCheckResponse> {
|
||||||
return NetworkResult.fromFetch {
|
return NetworkResult.fromFetch {
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ class SecureValueRecoveryV2(
|
|||||||
|
|
||||||
@Throws(IOException::class)
|
@Throws(IOException::class)
|
||||||
override fun authorization(): AuthCredentials {
|
override fun authorization(): AuthCredentials {
|
||||||
val request = WebSocketRequestMessage.get("/v2/backup/auth")
|
val request = WebSocketRequestMessage.get("/v2/svr/auth")
|
||||||
return NetworkResult.fromWebSocketRequest(authWebSocket, request, AuthCredentials::class).successOrThrow()
|
return NetworkResult.fromWebSocketRequest(authWebSocket, request, AuthCredentials::class).successOrThrow()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ public class PushServiceSocket {
|
|||||||
|
|
||||||
private static final String REGISTRATION_PATH = "/v1/registration";
|
private static final String REGISTRATION_PATH = "/v1/registration";
|
||||||
|
|
||||||
private static final String BACKUP_AUTH_CHECK_V2 = "/v2/backup/auth/check";
|
private static final String BACKUP_AUTH_CHECK_V2 = "/v2/svr/auth/check";
|
||||||
private static final String BACKUP_AUTH_CHECK_V3 = "/v3/backup/auth/check";
|
private static final String BACKUP_AUTH_CHECK_V3 = "/v3/backup/auth/check";
|
||||||
|
|
||||||
private static final String ARCHIVE_MEDIA_DOWNLOAD_PATH = "backups/%s/%s";
|
private static final String ARCHIVE_MEDIA_DOWNLOAD_PATH = "backups/%s/%s";
|
||||||
|
|||||||
Reference in New Issue
Block a user