diff options
| author | Roxie Linden <roxie@lindenlab.com> | 2023-09-22 12:40:16 -0700 | 
|---|---|---|
| committer | Roxie Linden <roxie@lindenlab.com> | 2024-02-08 18:34:01 -0800 | 
| commit | 2ad058aa38485ffc48910b3bfe9679bdd9d692b3 (patch) | |
| tree | c7af071a31e6f7d77f6e177d3863d08072aed7f7 | |
| parent | 1794898563b4b14a46bd385f202b002fee144100 (diff) | |
join notification was going out before session was created.
| -rw-r--r-- | indra/newview/llvoicewebrtc.cpp | 14 | 
1 files changed, 8 insertions, 6 deletions
| diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp index 3942f4171d..3073a58183 100644 --- a/indra/newview/llvoicewebrtc.cpp +++ b/indra/newview/llvoicewebrtc.cpp @@ -1121,6 +1121,13 @@ bool LLWebRTCVoiceClient::addAndJoinSession(const sessionStatePtr_t &nextSession  	// add 'self' participant.      addParticipantByID(gAgent.getID()); +    // tell peers that this participant has joined. + +    Json::FastWriter writer; +    Json::Value      root; +    root["j"]             = true; +    std::string json_data = writer.write(root); +    mWebRTCDataInterface->sendData(json_data, false);      notifyStatusObservers(LLVoiceClientStatusObserver::STATUS_JOINED); @@ -2681,12 +2688,7 @@ void LLWebRTCVoiceClient::OnDataReceived(const std::string& data, bool binary)  void LLWebRTCVoiceClient::OnDataChannelReady()   { -	// send a join -    Json::FastWriter writer; -    Json::Value      root; -    root["j"]        = true; -    std::string json_data = writer.write(root); -    mWebRTCDataInterface->sendData(json_data, false); +  } | 
