diff options
| author | Pepper <3782201+rohvani@users.noreply.github.com> | 2026-09-01 19:00:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-01 19:00:25 -0400 |
| commit | 56b34b332727299f2d54d4d6e8dbe5a7cb54cb11 (patch) | |
| tree | f9ea9e683dc3951a49a0773084d84ffa0dd9383e /indra/newview/llimprocessing.cpp | |
| parent | 66ff4c75bc2d594a41dfe22d85139311567b8e97 (diff) | |
| parent | cfbbdcb6e874d73ef9429293d3afff58e1d6c216 (diff) | |
Merge pull request #6208 from secondlife/pepper/chat-fixes
various fixes for chat modernization project viewer
Diffstat (limited to 'indra/newview/llimprocessing.cpp')
| -rw-r--r-- | indra/newview/llimprocessing.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llimprocessing.cpp b/indra/newview/llimprocessing.cpp index 9ba939d35b..bd5a2cddee 100644 --- a/indra/newview/llimprocessing.cpp +++ b/indra/newview/llimprocessing.cpp @@ -1453,7 +1453,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; |
