summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorymodel.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-03-24 18:03:09 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-03-24 18:03:09 +0200
commit9fa64f1e2087a8e45adad7298d2dd3661bd80e25 (patch)
treeb0f538d11083b6b1c473979f89504528a4c33914 /indra/newview/llinventorymodel.cpp
parent9697ac1bece30bda6410a8dc33450b85a3358745 (diff)
SL-18003 Fix items not being marked as complete when fetched via ais
Diffstat (limited to 'indra/newview/llinventorymodel.cpp')
-rw-r--r--indra/newview/llinventorymodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp
index 56f0a68f70..4c2383d211 100644
--- a/indra/newview/llinventorymodel.cpp
+++ b/indra/newview/llinventorymodel.cpp
@@ -3451,7 +3451,7 @@ void LLInventoryModel::processUpdateCreateInventoryItem(LLMessageSystem* msg, vo
// todo: instead of unpacking message fully,
// grab only an item_id, then fetch via AIS
- AISAPI::FetchItem(item_id, AISAPI::INVENTORY);
+ LLInventoryModelBackgroundFetch::instance().start(item_id, false);
}
}
@@ -3795,7 +3795,7 @@ void LLInventoryModel::processBulkUpdateInventory(LLMessageSystem* msg, void**)
// Temporary workaround: just fetch the item using AIS to get missing fields.
// If this works fine we might want to extract ids only from the message
// then use AIS as a primary fetcher
- AISAPI::FetchCategoryChildren((*cit)->getUUID(), AISAPI::INVENTORY);
+ LLInventoryModelBackgroundFetch::instance().start((*cit)->getUUID(), false);
}
for (item_array_t::iterator iit = items.begin(); iit != items.end(); ++iit)
{
@@ -3804,7 +3804,7 @@ void LLInventoryModel::processBulkUpdateInventory(LLMessageSystem* msg, void**)
// Temporary workaround: just fetch the item using AIS to get missing fields.
// If this works fine we might want to extract ids only from the message
// then use AIS as a primary fetcher
- AISAPI::FetchItem((*iit)->getUUID(), AISAPI::INVENTORY);
+ LLInventoryModelBackgroundFetch::instance().start((*iit)->getUUID(), false);
}
gInventory.notifyObservers();