summaryrefslogtreecommitdiff
path: root/indra/newview/llimprocessing.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-10-10 13:02:06 +0800
committerErik Kundiman <erik@megapahit.org>2026-10-10 13:02:06 +0800
commit7a75f495974c2d6a6be66614fbc526fa666279b5 (patch)
treeb71db46012b3a6c85bbd457dfba88eeb5a30e284 /indra/newview/llimprocessing.cpp
parenta36c78d643d759147b90bdd52753cc506702050c (diff)
parentdb59a05ae2b69b87175ac1da5f87a532f47fce1a (diff)
Merge tag 'Second_Life_Release#db59a05a-26.5' into 26.5
Diffstat (limited to 'indra/newview/llimprocessing.cpp')
-rw-r--r--indra/newview/llimprocessing.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/indra/newview/llimprocessing.cpp b/indra/newview/llimprocessing.cpp
index 9fafb2685a..52334a5212 100644
--- a/indra/newview/llimprocessing.cpp
+++ b/indra/newview/llimprocessing.cpp
@@ -519,6 +519,10 @@ void LLIMProcessing::processNewMessage(LLUUID from_id,
break;
case IM_NOTHING_SPECIAL: // p2p IM
+ // Record delivery metadata so live transport can be distinguished from history retrieval.
+ LL_INFOS("ChatServiceHistory") << "Direct IM received: sender_id=" << from_id
+ << ", offline=" << (offline == IM_OFFLINE)
+ << ", timestamp=" << timestamp << ", bytes=" << message.size() << LL_ENDL;
// Don't show dialog, just do IM
if (!gAgent.isGodlike()
&& gAgent.inPrelude()
@@ -622,6 +626,7 @@ void LLIMProcessing::processNewMessage(LLUUID from_id,
real_name = SYSTEM_FROM;
}
+ // Keep the undecorated body for matching against service history.
gIMMgr->addMessage(session_id,
from_id,
name,
@@ -635,7 +640,8 @@ void LLIMProcessing::processNewMessage(LLUUID from_id,
region_message,
timestamp,
LLUUID::null,
- real_name);
+ real_name,
+ notice_name.empty() ? LLSD(message) : LLSD());
}
else
{
@@ -1454,7 +1460,13 @@ void LLIMProcessing::processNewMessage(LLUUID from_id,
for (auto& panel : LLToastNotifyPanel::instance_snapshot())
{
const std::string& notification_name = panel.getNotificationName();
- if (notification_name == "OfferFriendship" && panel.isControlPanelEnabled())
+ LLNotificationPtr panel_notification = LLNotificationsUtil::find(panel.getID());
+ // Only a live actionable offer from this sender makes the packet a duplicate.
+ if (!panel.isDead()
+ && notification_name == "OfferFriendship"
+ && panel_notification
+ && panel_notification->getPayload()["from_id"].asUUID() == from_id
+ && panel.isControlPanelEnabled())
{
add_notification = false;
break;