vani-meeting-client 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/MeetingHandler.js
CHANGED
|
@@ -311,12 +311,15 @@ var MeetingHandler = /** @class */ (function () {
|
|
|
311
311
|
return undefined;
|
|
312
312
|
};
|
|
313
313
|
MeetingHandler.prototype.updateParticipantData = function (participant) {
|
|
314
|
-
var _a;
|
|
314
|
+
var _a, _b;
|
|
315
|
+
if (this.meetingStartRequest && participant.userId === ((_a = this.meetingStartRequest) === null || _a === void 0 ? void 0 : _a.userId)) {
|
|
316
|
+
this.meetingStartRequest.userData = participant.userData;
|
|
317
|
+
}
|
|
315
318
|
var oldParticipant = this.participantByUserId(participant.userId);
|
|
316
319
|
if (oldParticipant) {
|
|
317
320
|
oldParticipant = Object.assign(oldParticipant, participant);
|
|
318
321
|
this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && console.log("updateParticipantData", oldParticipant);
|
|
319
|
-
(
|
|
322
|
+
(_b = this.websocketCallHandler) === null || _b === void 0 ? void 0 : _b.sendSocketMessage(WebSocketBasicEvents.UpdateParticipant, oldParticipant);
|
|
320
323
|
}
|
|
321
324
|
return oldParticipant;
|
|
322
325
|
};
|
|
@@ -41,12 +41,10 @@ var DynamicLibHelper = /** @class */ (function () {
|
|
|
41
41
|
}
|
|
42
42
|
DynamicLibHelper.prototype.getReactNativeWebrtcPlugin = function (meetingStartRequest) {
|
|
43
43
|
return __awaiter(this, void 0, void 0, function () {
|
|
44
|
-
var libName;
|
|
45
44
|
return __generator(this, function (_a) {
|
|
46
45
|
try {
|
|
47
46
|
if (meetingStartRequest.isMobileApp) {
|
|
48
|
-
|
|
49
|
-
return [2 /*return*/, (require(libName))];
|
|
47
|
+
return [2 /*return*/, require("react-native-webrtc")];
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
catch (_b) {
|