Fix JitsiConference access

With so many abstractions called conference, I'm not surprised I made a
mistake and my reviewer didn't catch it.

As we are transitioning from remote participants identified by ID alone
to an ID-conference pair, the subsequent commits "Protect against late
PARTICIPANT_JOINED" and "Refine PARTICIPANT_LEFT for ID collisions"
caught the error.
This commit is contained in:
Lyubo Marinov
2018-05-29 12:24:39 +02:00
committed by Saúl Ibarra Corretgé
parent 11b7144ad0
commit fa9549582f
2 changed files with 9 additions and 6 deletions
+2 -4
View File
@@ -2,6 +2,7 @@
import throttle from 'lodash/throttle';
import { set } from '../redux';
import { showNotification } from '../../notifications';
import {
@@ -113,10 +114,7 @@ export function localParticipantIdChanged(id) {
* }}
*/
export function localParticipantJoined(participant = {}) {
return participantJoined({
...participant,
local: true
});
return participantJoined(set(participant, 'local', true));
}
/**