From 514b658fde13bb0c0ec862b081eeebf47bace70d Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Tue, 29 Jul 2025 18:47:44 +0300 Subject: #4385 show agent name next to @ mention url in chat logs --- indra/llui/llurlaction.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'indra/llui/llurlaction.cpp') diff --git a/indra/llui/llurlaction.cpp b/indra/llui/llurlaction.cpp index b6b450c2a1..d017f536f0 100644 --- a/indra/llui/llurlaction.cpp +++ b/indra/llui/llurlaction.cpp @@ -142,6 +142,16 @@ void LLUrlAction::copyLabelToClipboard(std::string url) } } +std::string LLUrlAction::getURLLabel(std::string url) +{ + LLUrlMatch match; + if (LLUrlRegistry::instance().findUrl(url, match)) + { + return match.getLabel(); + } + return ""; +} + void LLUrlAction::showProfile(std::string url) { // Get id from 'secondlife:///app/{cmd}/{id}/{action}' -- cgit v1.2.3