From 367b2af16429a9f575796c39ac5a311461f566ff Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 9 Oct 2023 21:29:23 +0300 Subject: [PATCH] Make MessageOrigin fields private. --- td/telegram/MessageOrigin.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/MessageOrigin.h b/td/telegram/MessageOrigin.h index 8de05818e..234ea5ac5 100644 --- a/td/telegram/MessageOrigin.h +++ b/td/telegram/MessageOrigin.h @@ -24,13 +24,14 @@ class Dependencies; class Td; -struct MessageOrigin { +class MessageOrigin { UserId sender_user_id_; DialogId sender_dialog_id_; MessageId message_id_; string author_signature_; string sender_name_; + public: MessageOrigin() = default; MessageOrigin(UserId sender_user_id, DialogId sender_dialog_id, MessageId message_id, string &&author_signature,