Fix incorrect fcm status when reregistering with recovery.
This commit is contained in:
parent
3e69ef8acc
commit
42da07b763
1 changed files with 4 additions and 1 deletions
|
@ -236,7 +236,10 @@ public final class RegistrationViewModel extends BaseRegistrationViewModel {
|
|||
.observeOn(Schedulers.io())
|
||||
.flatMap(data -> {
|
||||
if (data.canProceed) {
|
||||
return verifyReRegisterWithRecoveryPassword(pin, data.pinData);
|
||||
return updateFcmTokenValue().subscribeOn(Schedulers.io())
|
||||
.observeOn(Schedulers.io())
|
||||
.onErrorReturnItem("")
|
||||
.flatMap(s -> verifyReRegisterWithRecoveryPassword(pin, data.pinData));
|
||||
} else {
|
||||
throw new IllegalStateException("Unable to get token or master key");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue