mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Make change number error notifications more prominent.
This commit is contained in:
@@ -53,6 +53,7 @@ class VerifyAccountRepository(private val context: Application) {
|
||||
mcc: String?,
|
||||
mnc: String?
|
||||
): Single<ServiceResponse<RegistrationSessionMetadataResponse>> {
|
||||
Log.d(TAG, "Initializing registration session.")
|
||||
return Single.fromCallable {
|
||||
val fcmToken: String? = FcmUtil.getToken(context).orElse(null)
|
||||
val accountManager: SignalServiceAccountManager = AccountManagerFactory.getInstance().createUnauthenticated(context, e164, SignalServiceAddress.DEFAULT_DEVICE_ID, password)
|
||||
|
||||
@@ -34,7 +34,7 @@ import io.reactivex.rxjava3.core.Single;
|
||||
|
||||
/**
|
||||
* Base view model used in registration and change number flow. Handles the storage of all data
|
||||
* shared between the two flows, orchestrating verification, and calling to subclasses to peform
|
||||
* shared between the two flows, orchestrating verification, and calling to subclasses to perform
|
||||
* the specific verify operations for each flow.
|
||||
*/
|
||||
public abstract class BaseRegistrationViewModel extends ViewModel {
|
||||
@@ -287,6 +287,7 @@ public abstract class BaseRegistrationViewModel extends ViewModel {
|
||||
.map(RegistrationSessionProcessor.RegistrationSessionProcessorForSession::new)
|
||||
.doOnSuccess(createSessionProcessor -> {
|
||||
if (createSessionProcessor.pushChallengeTimedOut()) {
|
||||
Log.w(TAG, "Registration push challenge timed out.");
|
||||
markPushChallengeTimedOut();
|
||||
}
|
||||
});
|
||||
@@ -300,6 +301,7 @@ public abstract class BaseRegistrationViewModel extends ViewModel {
|
||||
final String sessionId = processor.getSessionId();
|
||||
|
||||
if (processor.isAllowedToRequestCode()) {
|
||||
Log.d(TAG, "All challenges satisfied.");
|
||||
return Single.just(processor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user