Skip to content

Commit 7b08ce7

Browse files
authored
fix: trickle model passed to Bridge and isLeftEvent check (#393)
1 parent b47bda5 commit 7b08ce7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

endpoint/stream/stream/include/privmx/endpoint/stream/ServerTypes.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ ENDPOINT_SERVER_TYPE(StreamUnpublishModel)
281281
TYPE_END
282282

283283
ENDPOINT_SERVER_TYPE(StreamTrickleModel)
284-
OBJECT_PTR_FIELD(candidate)
284+
OBJECT_PTR_FIELD(rtcCandidate)
285285
INT64_FIELD(sessionId)
286286
TYPE_END
287287

endpoint/stream/stream/src/Events.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ StreamUnpublishedEvent Events::extractStreamUnpublishedEvent(const core::EventHo
219219
}
220220

221221
bool Events::isStreamLeftEvent(const core::EventHolder& handler) {
222-
return handler.type() == "streamCustom";
222+
return handler.type() == "streamLeft";
223223
}
224224

225225
StreamLeftEvent Events::extractStreamLeftEvent(const core::EventHolder& handler) {

endpoint/stream/stream/src/StreamApiLowImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ void StreamApiLowImpl::assertTurnServerUri(const std::string& uri) {
11161116
void StreamApiLowImpl::trickle(const int64_t sessionId, const std::string& candidateAsJson) {
11171117
auto model = utils::TypedObjectFactory::createNewObject<server::StreamTrickleModel>();
11181118
model.sessionId(sessionId);
1119-
model.candidate(utils::TypedObjectFactory::createObjectFromVar<dynamic::RTCIceCandidate>(privmx::utils::Utils::parseJson(candidateAsJson)));
1119+
model.rtcCandidate(utils::TypedObjectFactory::createObjectFromVar<dynamic::RTCIceCandidate>(privmx::utils::Utils::parseJson(candidateAsJson)));
11201120
_serverApi->trickle(model);
11211121
}
11221122

0 commit comments

Comments
 (0)