Fixed crash in RecoverBox from PasscodeBox with custom check callback.

This commit is contained in:
23rd 2022-09-01 00:50:43 +03:00 committed by John Preston
parent 15aefddab4
commit 7e7562fdad
1 changed files with 1 additions and 0 deletions

View File

@ -1297,6 +1297,7 @@ void RecoverBox::proceedToChange(const QString &code) {
// like if (_cloudFields.turningOff) { just RecoverPassword else Check }
fields.mtp.curRequest = {};
fields.hasPassword = false;
fields.customCheckCallback = nullptr;
auto box = Box<PasscodeBox>(_session, fields);
box->boxClosing(