summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2023-09-29 01:40:20 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-02-08 18:34:01 -0800
commit35b4c7633e01e727a8ac75eedf32fc3810935617 (patch)
tree0aeb603f6a304749b2837c75456fe27b4ca21cbe /indra
parent84f6d30afa86b9ff2a273ce98a00667e81506a1e (diff)
tweak position transmission decision
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvoicewebrtc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp
index d97d4847ee..8962b4de09 100644
--- a/indra/newview/llvoicewebrtc.cpp
+++ b/indra/newview/llvoicewebrtc.cpp
@@ -2524,9 +2524,10 @@ void LLWebRTCVoiceClient::OnDataReceived(const std::string& data, bool binary)
continue;
}
participantStatePtr_t participant = findParticipantByID(agent_id);
- if (!participant && voice_data[participant_id].get("j", Json::Value(false)).asBool())
+ bool joined = voice_data[participant_id].get("j", Json::Value(false)).asBool();
+ new_participant |= joined;
+ if (!participant && joined)
{
- new_participant = true;
participant = addParticipantByID(agent_id);
}
if (participant)