Ignore updates from business connection.

This commit is contained in:
levlam 2024-07-30 13:25:26 +03:00
parent 2c8aadc7b7
commit f2d5a2e3bf

View File

@ -449,7 +449,11 @@ class UpdateDialogPinnedMessageQuery final : public Td::ResultHandler {
auto ptr = result_ptr.move_as_ok(); auto ptr = result_ptr.move_as_ok();
LOG(INFO) << "Receive result for UpdateDialogPinnedMessageQuery: " << to_string(ptr); LOG(INFO) << "Receive result for UpdateDialogPinnedMessageQuery: " << to_string(ptr);
td_->updates_manager_->on_get_updates(std::move(ptr), std::move(promise_)); if (!business_connection_id_.is_empty()) {
promise_.set_value(Unit());
} else {
td_->updates_manager_->on_get_updates(std::move(ptr), std::move(promise_));
}
} }
void on_error(Status status) final { void on_error(Status status) final {