diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-06-02 23:03:52 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-06-02 23:03:52 +0300 |
| commit | 42e6c35ace5c54c17460815a19c82486d8b450ca (patch) | |
| tree | 9fa5628cb17b522c05fee79fb46f51a443b09d72 /indra/newview/llaisapi.cpp | |
| parent | 8a33d65e984431d47f260b2cacbfc20ed4f8124c (diff) | |
SL-17429 Message user when their inventory hits AIS3 limits #2
Diffstat (limited to 'indra/newview/llaisapi.cpp')
| -rw-r--r-- | indra/newview/llaisapi.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llaisapi.cpp b/indra/newview/llaisapi.cpp index fcee3a3e91..4ac2acf1d1 100644 --- a/indra/newview/llaisapi.cpp +++ b/indra/newview/llaisapi.cpp @@ -901,7 +901,16 @@ void AISAPI::InvokeAISCommandCoro(LLCoreHttpUtil::HttpCoroutineAdapter::ptr_t ht if (body.has("depth") && body["depth"].asInteger() == 0) { // Can't fetch a single folder with depth 0, folder is too big. - LLNotificationsUtil::add("InventoryLimitReachedAIS"); + static bool first_call = true; + if (first_call) + { + first_call = false; + LLNotificationsUtil::add("InventoryLimitReachedAISAlert"); + } + else + { + LLNotificationsUtil::add("InventoryLimitReachedAIS"); + } LL_WARNS("Inventory") << "Fetch failed, content is over limit, url: " << url << LL_ENDL; } else |
