diff options
| author | Pepper <3782201+rohvani@users.noreply.github.com> | 2026-09-17 11:03:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-17 11:03:27 -0400 |
| commit | cc5d3dd3cd653971fff16cf2bc1d380edd5ea7f2 (patch) | |
| tree | a825cb021b74e45ceacb90213260b625f5234ebb /indra/newview/llnotificationofferhandler.cpp | |
| parent | 56b34b332727299f2d54d4d6e8dbe5a7cb54cb11 (diff) | |
| parent | c9cb3694cce949e7ab4638200646e91814c1cc7b (diff) | |
Merge pull request #6298 from secondlife/pepper/chat-fixes-2
additional fixes/cleanup for chat modernization project viewer
Diffstat (limited to 'indra/newview/llnotificationofferhandler.cpp')
| -rw-r--r-- | indra/newview/llnotificationofferhandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llnotificationofferhandler.cpp b/indra/newview/llnotificationofferhandler.cpp index dfca370b46..aa875ab247 100644 --- a/indra/newview/llnotificationofferhandler.cpp +++ b/indra/newview/llnotificationofferhandler.cpp @@ -150,6 +150,8 @@ bool LLOfferHandler::processNotification(const LLNotificationPtr& notification, { // log only to file if notif panel can be embedded to IM and IM is opened bool file_only = add_notif_to_im && LLHandlerUtil::isIMFloaterOpened(notification); + // Only a log paired with an inline offer may be hidden during replay. + const LLUUID notification_id = add_notif_to_im ? notification->getID() : LLUUID::null; if ((notification->getName() == "TeleportOffered" || notification->getName() == "TeleportOffered_MaturityExceeded" || notification->getName() == "TeleportOffered_MaturityBlocked")) @@ -157,11 +159,11 @@ bool LLOfferHandler::processNotification(const LLNotificationPtr& notification, boost::regex r("<icon\\s*>\\s*([^<]*)?\\s*</icon\\s*>( - )?", boost::regex::perl|boost::regex::icase); std::string stripped_msg = boost::regex_replace(notification->getMessage(), r, ""); - LLHandlerUtil::logToIMP2P(notification->getPayload()["from_id"], stripped_msg,file_only); + LLHandlerUtil::logToIMP2P(notification->getPayload()["from_id"], stripped_msg, file_only, notification_id); } else { - LLHandlerUtil::logToIMP2P(notification, file_only); + LLHandlerUtil::logToIMP2P(notification, file_only, notification_id); } } } |
