Skip to content

Commit

Permalink
Fix warning.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 6eff463a63bb377cdb583c819b33b0fe1f906fca
  • Loading branch information
levlam committed Aug 13, 2018
1 parent bd09e39 commit da43859
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion td/telegram/SecureManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,12 @@ void SecureManager::get_passport_authorization_form(string password, UserId bot_
Promise<TdApiAuthorizationForm> promise) {
refcnt_++;
auto authorization_form_id = ++max_authorization_form_id_;
authorization_forms_[authorization_form_id] = AuthorizationForm{bot_user_id, scope, public_key, payload, false};
auto &form = authorization_forms_[authorization_form_id];
form.bot_user_id = bot_user_id;
form.scope = scope;
form.public_key = public_key;
form.payload = payload;
form.is_received = false;
auto new_promise = PromiseCreator::lambda(
[actor_id = actor_id(this), authorization_form_id, promise = std::move(promise)](
Result<std::pair<std::unordered_map<SecureValueType, SuitableSecureValue>, TdApiAuthorizationForm>>
Expand Down

0 comments on commit da43859

Please sign in to comment.