Reload attach menu bots if failed to toggle one.

This commit is contained in:
levlam 2022-03-31 12:10:50 +03:00
parent e541e140bb
commit b01bc42470

View File

@ -108,6 +108,7 @@ class ToggleBotInAttachMenuQuery final : public Td::ResultHandler {
}
void on_error(Status status) final {
td_->attach_menu_manager_->reload_attach_menu_bots(Promise<Unit>());
promise_.set_error(std::move(status));
}
};