export default ( peerConnection , payload ) => { const filteredPartner = payload . users . filter ( ( user ) => { return peerConnection . user . publicKey !== user . publicKey ; } ) ; if ( filteredPartner [ 0 ] === undefined ) return ; [ peerConnection . partner ] = filteredPartner ; if ( peerConnection . partner . publicKey !== '' ) { peerConnection . toggleLockRoom ( true ) ; peerConnection . emitUserEnter ( ) ; } } ;