tweak position transmission decision

meow-7.2.2
Roxie Linden 2023-09-29 01:40:20 -07:00
parent 84f6d30afa
commit 35b4c7633e
1 changed files with 3 additions and 2 deletions

View File

@ -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)