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
|
@ -8,12 +8,18 @@ import {
|
|||
CallingStateType,
|
||||
CallsByConversationType,
|
||||
DirectCallStateType,
|
||||
getActiveCall,
|
||||
} from '../ducks/calling';
|
||||
import { CallMode, CallState } from '../../types/Calling';
|
||||
import { getOwn } from '../../util/getOwn';
|
||||
|
||||
const getCalling = (state: StateType): CallingStateType => state.calling;
|
||||
|
||||
export const isInCall = createSelector(
|
||||
getCalling,
|
||||
(state: CallingStateType): boolean => Boolean(getActiveCall(state))
|
||||
);
|
||||
|
||||
export const getCallsByConversation = createSelector(
|
||||
getCalling,
|
||||
(state: CallingStateType): CallsByConversationType =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue