|
|
@@ -302,8 +302,8 @@ JitsiConferenceEventManager.prototype.setupChatRoomListeners = function() {
|
|
302
|
302
|
|
|
303
|
303
|
chatRoom.addListener(XMPPEvents.JSON_MESSAGE_RECEIVED,
|
|
304
|
304
|
(from, payload) => {
|
|
305
|
|
- const participant = conference.getParticipantById(
|
|
306
|
|
- from.split('/')[1]);
|
|
|
305
|
+ const id = Strophe.getResourceFromJid(from);
|
|
|
306
|
+ const participant = conference.getParticipantById(id);
|
|
307
|
307
|
|
|
308
|
308
|
if (participant) {
|
|
309
|
309
|
conference.eventEmitter.emit(
|
|
|
@@ -311,7 +311,7 @@ JitsiConferenceEventManager.prototype.setupChatRoomListeners = function() {
|
|
311
|
311
|
participant, payload);
|
|
312
|
312
|
} else {
|
|
313
|
313
|
logger.warn(
|
|
314
|
|
- 'Ignored ENDPOINT_MESSAGE_RECEIVED for not existing '
|
|
|
314
|
+ 'Ignored XMPPEvents.JSON_MESSAGE_RECEIVED for not existing '
|
|
315
|
315
|
+ `participant: ${from}`,
|
|
316
|
316
|
payload);
|
|
317
|
317
|
}
|