summaryrefslogtreecommitdiff
path: root/indra/newview/llimview.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@lindenlab.com>2026-05-20 12:05:18 -0400
committerGitHub <noreply@github.com>2026-05-20 12:05:18 -0400
commit40cd1617a6a663fb921265101307454b490ec4ba (patch)
tree2f13741295c385172364e3fa940d7591f32fac4e /indra/newview/llimview.cpp
parent9c2ee024bef564ebb6e2e8942b43ffae1d99232c (diff)
parentdf844170600608b37c2725f7a263f1de3b055618 (diff)
Merge branch 'develop' into geenz/26.3-to-develop
Diffstat (limited to 'indra/newview/llimview.cpp')
-rw-r--r--indra/newview/llimview.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp
index 252eb32e7c..f8cc6885c4 100644
--- a/indra/newview/llimview.cpp
+++ b/indra/newview/llimview.cpp
@@ -3245,8 +3245,9 @@ void LLIMMgr::addMessage(
return;
}
- // Fetch group chat history, enabled by default.
- if (gSavedPerAccountSettings.getBOOL("FetchGroupChatHistory"))
+ // Fetch group chat or ad-hoc history, enabled by default.
+ static LLCachedControl<bool> fetch_chat_history(gSavedPerAccountSettings, "FetchGroupChatHistory", true);
+ if (fetch_chat_history && !session->isP2PSessionType())
{
std::string chat_url = gAgent.getRegionCapability("ChatSessionRequest");
if (!chat_url.empty())
@@ -4089,8 +4090,9 @@ public:
{
im_floater->processSessionUpdate(body["session_info"]);
- // Send request for chat history, if enabled.
- if (gSavedPerAccountSettings.getBOOL("FetchGroupChatHistory"))
+ // Send request for chat history, if enabled. Skip for peer-to-peer IMs.
+ static LLCachedControl<bool> fetch_chat_history(gSavedPerAccountSettings, "FetchGroupChatHistory", true);
+ if (fetch_chat_history && !im_floater->isP2PSessionType())
{
std::string url = gAgent.getRegionCapability("ChatSessionRequest");
if (!url.empty())