incoming p2p sessions for webrtc may not have names yet.

master
Roxie Linden 2024-05-13 12:36:07 -07:00
parent 27e4913b5c
commit 39d24e90b9
1 changed files with 4 additions and 0 deletions

View File

@ -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"]);