Ignore MESSAGE_NOT_MODIFIED error for added reactions.
This commit is contained in:
parent
e11804b5b0
commit
a8535a78f7
@ -222,6 +222,9 @@ class SendReactionQuery final : public Td::ResultHandler {
|
||||
}
|
||||
|
||||
void on_error(Status status) final {
|
||||
if (status.message() == "MESSAGE_NOT_MODIFIED") {
|
||||
return promise_.set_value(Unit());
|
||||
}
|
||||
td_->messages_manager_->on_get_dialog_error(dialog_id_, status, "SendReactionQuery");
|
||||
promise_.set_error(std::move(status));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user