From e0d78594efcd0f6d5df48e4a641ad7ec041dac18 Mon Sep 17 00:00:00 2001
From: cinder <cinder@cinderblocks.biz>
Date: Sat, 31 Dec 2022 05:15:27 -0600
Subject: [PATCH] Add chat channel to script dialogs

---
 indra/newview/llviewermessage.cpp                    | 1 +
 indra/newview/skins/default/xui/en/notifications.xml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index dc7f03eea16..169c350382b 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -7098,6 +7098,7 @@ void process_script_dialog(LLMessageSystem* msg, void**)
 	LLSD args;
 	args["TITLE"] = object_name;
 	args["MESSAGE"] = message;
+    args["CHANNEL"] = chat_channel;
 	LLNotificationPtr notification;
 	if (!first_name.empty())
 	{
diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml
index c87f7264491..d0e46496fd7 100644
--- a/indra/newview/skins/default/xui/en/notifications.xml
+++ b/indra/newview/skins/default/xui/en/notifications.xml
@@ -8320,7 +8320,7 @@ Do not allow access if you do not fully understand why it wants access to your a
    name="ScriptDialog"
    show_toast="false"
    type="notify">
-[NAME]&apos;s &apos;&lt;nolink&gt;[TITLE]&lt;/nolink&gt;&apos;
+[NAME]&apos;s &apos;&lt;nolink&gt;[TITLE]&lt;/nolink&gt;&apos; on channel [CHANNEL]
 [MESSAGE]
     <form name="form">
       <button
-- 
GitLab