summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2010-01-12 19:57:17 +0200
committerMike Antipov <mantipov@productengine.com>2010-01-12 19:57:17 +0200
commit628b892a66023ec8eea4241977a64a5b86108774 (patch)
treef2f30e63aa9e873341db5837c01e4a2afc275c34
parentf0bbe788370bdc4a4479899be620e2d298d0be70 (diff)
Completed low task EXT-3759 (NOTFORBETA0: Phone numbers for AvaLine calls should be human readable)
- implemented formatting of avaline Number in the "Leaving call" notification --HG-- branch : product-engine
-rw-r--r--indra/newview/llimview.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp
index 1f994ecc71..e9661003ea 100644
--- a/indra/newview/llimview.cpp
+++ b/indra/newview/llimview.cpp
@@ -1603,7 +1603,12 @@ void LLOutgoingCallDialog::show(const LLSD& key)
if (!mPayload["disconnected_channel_name"].asString().empty())
{
- childSetTextArg("nearby", "[VOICE_CHANNEL_NAME]", mPayload["disconnected_channel_name"].asString());
+ std::string channel_name = mPayload["disconnected_channel_name"].asString();
+ if (LLIMModel::LLIMSession::AVALINE_SESSION == mPayload["session_type"].asInteger())
+ {
+ channel_name = LLTextUtil::formatPhoneNumber(channel_name);
+ }
+ childSetTextArg("nearby", "[VOICE_CHANNEL_NAME]", channel_name);
childSetTextArg("nearby_P2P", "[VOICE_CHANNEL_NAME]", mPayload["disconnected_channel_name"].asString());
}