mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 08:47:46 +00:00
Display appropriate registration error msg w/ bad verification code
Fixes #6551
This commit is contained in:
parent
d0cd2621ca
commit
37a5622525
@ -39,6 +39,7 @@ import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
||||
import org.thoughtcrime.securesms.util.Util;
|
||||
import org.whispersystems.libsignal.util.KeyHelper;
|
||||
import org.whispersystems.signalservice.api.SignalServiceAccountManager;
|
||||
import org.whispersystems.signalservice.api.push.exceptions.AuthorizationFailedException;
|
||||
import org.whispersystems.signalservice.api.push.exceptions.ExpectationFailedException;
|
||||
import org.whispersystems.signalservice.api.push.exceptions.RateLimitException;
|
||||
import org.whispersystems.signalservice.api.util.PhoneNumberFormatter;
|
||||
@ -548,6 +549,9 @@ public class RegistrationProgressActivity extends BaseActionBarActivity {
|
||||
} catch (RateLimitException e) {
|
||||
Log.w(TAG, e);
|
||||
return RATE_LIMIT_ERROR;
|
||||
} catch (AuthorizationFailedException e) {
|
||||
Log.w(TAG, e);
|
||||
return VERIFICATION_ERROR;
|
||||
} catch (IOException e) {
|
||||
Log.w(TAG, e);
|
||||
return NETWORK_ERROR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user