summaryrefslogtreecommitdiff
path: root/indra/newview/llimview.cpp
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2024-03-06 11:17:54 -0800
committerRoxie Linden <roxie@lindenlab.com>2024-03-06 11:17:54 -0800
commit28032582f22b543199c1e7db7f75a82eec2f0c8b (patch)
treeacf05cc25d0cc5d585f00bb42c1c99ae969483a6 /indra/newview/llimview.cpp
parent967534352be21b23df96020f40c6449b2501e5b1 (diff)
Shutting down a p2p via adhoc call resets the channel info. We shouldn't throw up a blank dialogue when that happens
Diffstat (limited to 'indra/newview/llimview.cpp')
-rw-r--r--indra/newview/llimview.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp
index fa8075673c..956c3a0276 100644
--- a/indra/newview/llimview.cpp
+++ b/indra/newview/llimview.cpp
@@ -2368,6 +2368,11 @@ void LLCallDialogManager::onVoiceChannelStateChangedInt(const LLVoiceChannel::ES
return;
}
break;
+ case LLVoiceChannel::STATE_NO_CHANNEL_INFO :
+ // This will happen in p2p calls using the adhoc
+ // infrastructure, which marks the channel as no channel info
+ // after the call is closed, which forces a dialogue.
+ return;
case LLVoiceChannel::STATE_HUNG_UP:
// this state is coming before session is changed
@@ -3394,6 +3399,13 @@ void LLIMMgr::inviteToSession(
EInvitationType inv_type,
const LLSD& voice_channel_info)
{
+
+ if (caller_id == gAgentID)
+ {
+ // ignore invites from ourself.
+ return;
+ }
+
std::string notify_box_type;
// voice invite question is different from default only for group call (EXT-7118)
std::string question_type = "VoiceInviteQuestionDefault";