Ignore MESSAGE_NOT_MODIFIED error for added reactions.

This commit is contained in:
levlam 2022-11-01 14:38:49 +03:00
parent e11804b5b0
commit a8535a78f7

View File

@ -222,6 +222,9 @@ class SendReactionQuery final : public Td::ResultHandler {
} }
void on_error(Status status) final { 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"); td_->messages_manager_->on_get_dialog_error(dialog_id_, status, "SendReactionQuery");
promise_.set_error(std::move(status)); promise_.set_error(std::move(status));
} }