summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-02 23:03:52 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-02 23:03:52 +0300
commit42e6c35ace5c54c17460815a19c82486d8b450ca (patch)
tree9fa5628cb17b522c05fee79fb46f51a443b09d72
parent8a33d65e984431d47f260b2cacbfc20ed4f8124c (diff)
SL-17429 Message user when their inventory hits AIS3 limits #2
-rw-r--r--indra/newview/llaisapi.cpp11
-rw-r--r--indra/newview/skins/default/xui/en/notifications.xml8
2 files changed, 18 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
diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml
index 4c8d7fbd83..aa8e6176e1 100644
--- a/indra/newview/skins/default/xui/en/notifications.xml
+++ b/indra/newview/skins/default/xui/en/notifications.xml
@@ -6441,6 +6441,14 @@ Your trash is overflowing. This may cause problems logging in.
</notification>
<notification
+ icon="alertmodal.tga"
+ name="InventoryLimitReachedAISAlert"
+ type="alertmodal">
+Your inventory is experiencing issues. Please, contact support.
+ <tag>fail</tag>
+ </notification>
+
+ <notification
icon="notifytip.tga"
name="InventoryLimitReachedAIS"
type="notifytip">