From df3f485a7aa5938b9ff922fa07bdcc651d291fe3 Mon Sep 17 00:00:00 2001 From: Hans-Peter Herzog Date: Wed, 11 Dec 2019 09:11:46 +0100 Subject: [PATCH] TT#72407 Additional refactoring of conference store Change-Id: Ic96a8f39c388425051aa0b438f124d8f7a447086 --- src/components/layouts/Conference.vue | 30 +++++++++++-------- .../CscConferenceLocalParticipant.vue | 13 ++++---- src/store/conference.js | 1 - t/store/conference.js | 15 +--------- 4 files changed, 25 insertions(+), 34 deletions(-) diff --git a/src/components/layouts/Conference.vue b/src/components/layouts/Conference.vue index 2f24dc5d..38349739 100644 --- a/src/components/layouts/Conference.vue +++ b/src/components/layouts/Conference.vue @@ -64,17 +64,7 @@
+ :disable="conferenceHasParticipants"> - - - + - {{ localParticipant.displayName }} - + > + {{ localParticipant.displayName }} + diff --git a/src/store/conference.js b/src/store/conference.js index 12ee9864..c5e4a88e 100644 --- a/src/store/conference.js +++ b/src/store/conference.js @@ -211,7 +211,6 @@ export default { }); } state.participants.push(participant.getId()); - }, participantLeft(state, participant) { state.participants = state.participants.filter(($participant) => { diff --git a/t/store/conference.js b/t/store/conference.js index 7cd62c53..ae0a3be7 100644 --- a/t/store/conference.js +++ b/t/store/conference.js @@ -4,7 +4,7 @@ import ConferenceModule from '../../src/store/conference'; import { assert } from 'chai'; -describe('ConferenceModule', function(){ +describe('Conference', function(){ it('should add a participant id to the store if not already stored', () => { let state = { @@ -48,17 +48,6 @@ describe('ConferenceModule', function(){ }); - it('should add a participant mediastream to the store', () => { - let state = { - remoteMediaStreams: {} - }; - const participantId = '123456789'; - - ConferenceModule.mutations.addRemoteMedia(state, participantId); - assert.exists(state.remoteMediaStreams[participantId]); - - }); - it('should remove a participant mediastream from the store', () => { let state = { remoteMediaStreams: { @@ -104,6 +93,4 @@ describe('ConferenceModule', function(){ assert.equal(state.selectedParticipant, null); }); - - });