From 4a8ba5075a1a10ec21936cf0a16824c7227ed13f Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 26 Oct 2018 18:04:04 +0300 Subject: [PATCH] Add EncryptedInputFile constructor. GitOrigin-RevId: 9b65eebb5103753a4ceb163f0321361001686bfc --- td/telegram/logevent/SecretChatEvent.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/td/telegram/logevent/SecretChatEvent.h b/td/telegram/logevent/SecretChatEvent.h index 246c7638..fdba3223 100644 --- a/td/telegram/logevent/SecretChatEvent.h +++ b/td/telegram/logevent/SecretChatEvent.h @@ -60,6 +60,7 @@ struct EncryptedInputFile { int64 access_hash = 0; int32 parts = 0; int32 key_fingerprint = 0; + template void store(T &storer) const { using td::store; @@ -71,6 +72,10 @@ struct EncryptedInputFile { store(key_fingerprint, storer); } + EncryptedInputFile(Type type, int64 id, int64 access_hash, int32 parts, int32 key_fingerprint) + : type(type), id(id), access_hash(access_hash), parts(parts), key_fingerprint(key_fingerprint) { + } + bool empty() const { return type == Empty; }