From 8044ed83b8ec85dc8d606e950079642dfbe1e7ab Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 1 Aug 2024 22:52:49 +0300 Subject: [PATCH] Add MessageReactor::add_dependencies. --- td/telegram/MessageReactor.cpp | 5 +++++ td/telegram/MessageReactor.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/td/telegram/MessageReactor.cpp b/td/telegram/MessageReactor.cpp index 64e7cfe6c..da6b0c723 100644 --- a/td/telegram/MessageReactor.cpp +++ b/td/telegram/MessageReactor.cpp @@ -6,6 +6,7 @@ // #include "td/telegram/MessageReactor.h" +#include "td/telegram/Dependencies.h" #include "td/telegram/MessageSender.h" namespace td { @@ -24,6 +25,10 @@ td_api::object_ptr MessageReactor::get_paid_reactor_object( is_me_, is_anonymous_); } +void MessageReactor::add_dependencies(Dependencies &dependencies) const { + dependencies.add_message_sender_dependencies(dialog_id_); +} + bool operator==(const MessageReactor &lhs, const MessageReactor &rhs) { return lhs.dialog_id_ == rhs.dialog_id_ && lhs.count_ == rhs.count_ && lhs.is_top_ == rhs.is_top_ && lhs.is_me_ == rhs.is_me_ && lhs.is_anonymous_ == rhs.is_anonymous_; diff --git a/td/telegram/MessageReactor.h b/td/telegram/MessageReactor.h index b709c42c0..458a5afe6 100644 --- a/td/telegram/MessageReactor.h +++ b/td/telegram/MessageReactor.h @@ -15,6 +15,8 @@ namespace td { +class Dependencies; + class Td; class MessageReactor { @@ -39,6 +41,8 @@ class MessageReactor { td_api::object_ptr get_paid_reactor_object(Td *td) const; + void add_dependencies(Dependencies &dependencies) const; + template void store(StorerT &storer) const;