diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-03-28 19:38:26 +0300 | 
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-03-28 21:37:32 +0300 | 
| commit | 3bf9c78f564f0b6c4fd79163bd63c0a6c1fab7cb (patch) | |
| tree | a3ff8c1df49926f26385efc6aa55f006e18b471a /indra/newview/llinventorymodel.cpp | |
| parent | d21a1aace63967fe62b12b71b7f683f662dfcf4a (diff) | |
SL-18003 Improve dupplicate prevention
Try getting lost and found
Diffstat (limited to 'indra/newview/llinventorymodel.cpp')
| -rw-r--r-- | indra/newview/llinventorymodel.cpp | 11 | 
1 files changed, 4 insertions, 7 deletions
| diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index bfc7840708..9a874350bf 100644 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -3453,8 +3453,8 @@ void LLInventoryModel::processUpdateCreateInventoryItem(LLMessageSystem* msg, vo  		gInventoryCallbacks.fire(callback_id, item_id);          // todo: instead of unpacking message fully, -        // grab only an item_id, then fetch via AIS -        LLInventoryModelBackgroundFetch::instance().start(item_id, false); +        // grab only an item_id, then fetch +        LLInventoryModelBackgroundFetch::instance().scheduleItemFetch(item_id, true);  	}  } @@ -3798,10 +3798,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 - -        // Use AIS derectly to not reset folder's version -        // Todo: May be LLInventoryModelBackgroundFetch needs a 'forced' option -        AISAPI::FetchCategoryChildren((*cit)->getUUID(), AISAPI::INVENTORY); +        LLInventoryModelBackgroundFetch::instance().scheduleFolderFetch((*cit)->getUUID(), true /*force, since it has changes*/);  	}  	for (item_array_t::iterator iit = items.begin(); iit != items.end(); ++iit)  	{ @@ -3810,7 +3807,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 -        LLInventoryModelBackgroundFetch::instance().scheduleItemFetch((*iit)->getUUID()); +        LLInventoryModelBackgroundFetch::instance().scheduleItemFetch((*iit)->getUUID(), true);  	}  	gInventory.notifyObservers(); | 
