Add MessageReactor::add_dependencies.
This commit is contained in:
parent
4995abde1b
commit
8044ed83b8
@ -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<td_api::paidReactor> 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_;
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
namespace td {
|
||||
|
||||
class Dependencies;
|
||||
|
||||
class Td;
|
||||
|
||||
class MessageReactor {
|
||||
@ -39,6 +41,8 @@ class MessageReactor {
|
||||
|
||||
td_api::object_ptr<td_api::paidReactor> get_paid_reactor_object(Td *td) const;
|
||||
|
||||
void add_dependencies(Dependencies &dependencies) const;
|
||||
|
||||
template <class StorerT>
|
||||
void store(StorerT &storer) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user