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-22 23:11:35 -0800
commitec3ea3b5723e6f52ca3caf51547983568a3781c3 (patch)
treef0414d1c81520940826cc14cd519c0fc25afc7fd /indra
parentbdf6c299754fef09ab6d836888931588174b6e89 (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)