do not erase joined state on receiving calls data (#6039)
This commit is contained in:
parent
84d281181b
commit
e8e7618497
2 changed files with 1 additions and 4 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
|
|
@ -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 '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue