do not erase joined state on receiving calls data (#6039)

This commit is contained in:
Christopher Poile 2022-03-11 07:07:06 -05:00 committed by GitHub
parent 84d281181b
commit e8e7618497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -219,7 +219,7 @@ describe('Reducers.calls.joined', () => {
data: {calls: {'channel-1': {}, 'channel-2': {}}, enabled: {'channel-1': true}},
};
const state = callsReducer(initialState, testAction);
assert.equal(state.joined, '');
assert.equal(state.joined, 'test');
});
it('RECEIVED_MYSELF_JOINED_CALL', async () => {

View file

@ -121,9 +121,6 @@ function joined(state = '', action: GenericAction) {
case CallsTypes.RECEIVED_MYSELF_JOINED_CALL: {
return action.data;
}
case CallsTypes.RECEIVED_CALLS: {
return '';
}
case CallsTypes.RECEIVED_MYSELF_LEFT_CALL: {
return '';
}