summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2024-05-13 12:36:07 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-05-13 12:36:07 -0700
commit39d24e90b983a48335055ed00c7614c0ac0d4d20 (patch)
tree8ad4e6bda0d703b31bec64ff76a568e25035c7de
parent27e4913b5c5703404c6944d776c43002b7b9da8c (diff)
incoming p2p sessions for webrtc may not have names yet.
-rw-r--r--indra/newview/llimview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp
index 2c78676f46..2eb1986558 100644
--- a/indra/newview/llimview.cpp
+++ b/indra/newview/llimview.cpp
@@ -2980,6 +2980,10 @@ void LLIncomingCallDialog::processCallResponse(S32 response, const LLSD &payload
{
if (type == IM_SESSION_P2P_INVITE)
{
+ if (session_name.empty())
+ {
+ session_name = payload["caller_name"].asString();
+ }
// create a normal IM session
session_id = gIMMgr->addP2PSession(
session_name, caller_id, payload["voice_channel_info"]);