From 16fb0f59699e421efd4e6e6c45951140754b2588 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 10 Apr 2018 18:42:01 +0300 Subject: [PATCH] Fix get_encrypted_passport_data_object. GitOrigin-RevId: 88564cbe9468b13e32f511480e28d7dc61e3d0b2 --- td/telegram/SecureValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/SecureValue.cpp b/td/telegram/SecureValue.cpp index 666958313..ff2751c69 100644 --- a/td/telegram/SecureValue.cpp +++ b/td/telegram/SecureValue.cpp @@ -322,7 +322,7 @@ td_api::object_ptr get_encrypted_passport_data_ob return td_api::make_object( get_passport_data_type_object(value.type), is_plain ? string() : value.data.data, get_encrypted_files_object(file_manager, value.files), is_plain ? value.data.data : string(), - get_encrypted_file_object(file_manager, value.selfie)); + value.selfie.file_id.is_valid() ? get_encrypted_file_object(file_manager, value.selfie) : nullptr); } telegram_api::object_ptr get_input_secure_value_object(