mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-04 15:35:38 +01:00
Fix crashes during skip SMS flow.
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
package org.whispersystems.signalservice.api.push.exceptions
|
||||
|
||||
class IncorrectRegistrationRecoveryPasswordException : NonSuccessfulResponseCodeException(403)
|
||||
+3
@@ -68,6 +68,7 @@ import org.whispersystems.signalservice.api.push.exceptions.DeprecatedVersionExc
|
||||
import org.whispersystems.signalservice.api.push.exceptions.ExpectationFailedException;
|
||||
import org.whispersystems.signalservice.api.push.exceptions.ExternalServiceFailureException;
|
||||
import org.whispersystems.signalservice.api.push.exceptions.HttpConflictException;
|
||||
import org.whispersystems.signalservice.api.push.exceptions.IncorrectRegistrationRecoveryPasswordException;
|
||||
import org.whispersystems.signalservice.api.push.exceptions.InvalidTransportModeException;
|
||||
import org.whispersystems.signalservice.api.push.exceptions.MalformedResponseException;
|
||||
import org.whispersystems.signalservice.api.push.exceptions.MissingConfigurationException;
|
||||
@@ -2519,6 +2520,8 @@ public class PushServiceSocket {
|
||||
@Override
|
||||
public void handle(int responseCode, ResponseBody body) throws NonSuccessfulResponseCodeException, PushNetworkException {
|
||||
switch (responseCode) {
|
||||
case 403:
|
||||
throw new IncorrectRegistrationRecoveryPasswordException();
|
||||
case 404:
|
||||
throw new NoSuchSessionException();
|
||||
case 409:
|
||||
|
||||
Reference in New Issue
Block a user