summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/llvoicewebrtc.cpp14
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);
+
}