Do not download media if in call
This commit is contained in:
parent
d22add261b
commit
a096220990
16 changed files with 274 additions and 47 deletions
|
@ -9,6 +9,7 @@ import {
|
|||
getCallsByConversation,
|
||||
getCallSelector,
|
||||
getIncomingCall,
|
||||
isInCall,
|
||||
} from '../../../state/selectors/calling';
|
||||
import { getEmptyState, CallingStateType } from '../../../state/ducks/calling';
|
||||
|
||||
|
@ -132,4 +133,14 @@ describe('state/selectors/calling', () => {
|
|||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('isInCall', () => {
|
||||
it('returns should be false if we are not in a call', () => {
|
||||
assert.isFalse(isInCall(getEmptyRootState()));
|
||||
});
|
||||
|
||||
it('should be true if we are in a call', () => {
|
||||
assert.isTrue(isInCall(getCallingState(stateWithActiveDirectCall)));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue