Ignore updates from business connection.
This commit is contained in:
parent
2c8aadc7b7
commit
f2d5a2e3bf
@ -449,8 +449,12 @@ 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);
|
||||||
|
if (!business_connection_id_.is_empty()) {
|
||||||
|
promise_.set_value(Unit());
|
||||||
|
} else {
|
||||||
td_->updates_manager_->on_get_updates(std::move(ptr), std::move(promise_));
|
td_->updates_manager_->on_get_updates(std::move(ptr), std::move(promise_));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void on_error(Status status) final {
|
void on_error(Status status) final {
|
||||||
if (!business_connection_id_.is_empty()) {
|
if (!business_connection_id_.is_empty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user