From 7b53d644920c6130a08a7a1c3c3d849c0873382c Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 2 Dec 2019 03:26:52 +0300 Subject: [PATCH] Fix warning. GitOrigin-RevId: 4eab0bc2fc97a7c538f54b1935fe830883e29f69 --- td/telegram/AuthManager.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/AuthManager.hpp b/td/telegram/AuthManager.hpp index df5415aac..1e22be001 100644 --- a/td/telegram/AuthManager.hpp +++ b/td/telegram/AuthManager.hpp @@ -97,7 +97,7 @@ void AuthManager::DbState::parse(ParserT &parser) { PARSE_FLAG(is_wait_registration_stores_phone_number); END_PARSE_FLAGS(); } - if (!is_wait_registration_stores_phone_number) { + if (!is_wait_registration_supported || !is_wait_registration_stores_phone_number) { return parser.set_error("Have no wait registration support"); } CHECK(is_pbkdf2_supported);