summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2024-05-02 18:36:29 +0300
committerGitHub <noreply@github.com>2024-05-02 18:36:29 +0300
commitd738aa7d640ab36eca56a6b9b07bea013d54c769 (patch)
treebca6484afbd44dd1c50683906e9543dafe269d83
parentfaefd351638b80a0e0bd2383303acd2a50c7b297 (diff)
pviewer#235 slurl command should require at least click action
-rw-r--r--indra/newview/llvoicecallhandler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llvoicecallhandler.cpp b/indra/newview/llvoicecallhandler.cpp
index 95e11abd82..85e829021e 100644
--- a/indra/newview/llvoicecallhandler.cpp
+++ b/indra/newview/llvoicecallhandler.cpp
@@ -37,7 +37,12 @@ public:
LLVoiceCallAvatarHandler() : LLCommandHandler("voicecallavatar", UNTRUSTED_THROTTLE)
{
}
-
+
+ virtual bool canHandleUntrusted(const LLSD &params, const LLSD &query_map, LLMediaCtrl *web, const std::string &nav_type)
+ {
+ return (nav_type == NAV_TYPE_CLICKED || nav_type == NAV_TYPE_EXTERNAL);
+ }
+
bool handle(const LLSD& params, const LLSD& query_map, const std::string& grid, LLMediaCtrl* web)
{
if (!LLUI::getInstance()->mSettingGroups["config"]->getBOOL("EnableVoiceCall"))