Add group calling events to the message timeline
This commit is contained in:
parent
a2f285d243
commit
0c039bf431
29 changed files with 1275 additions and 239 deletions
|
@ -10,15 +10,22 @@ import {
|
|||
DirectCallStateType,
|
||||
} from '../ducks/calling';
|
||||
import { CallMode, CallState } from '../../types/Calling';
|
||||
import { getOwn } from '../../util/getOwn';
|
||||
|
||||
const getCalling = (state: StateType): CallingStateType => state.calling;
|
||||
|
||||
const getCallsByConversation = createSelector(
|
||||
export const getCallsByConversation = createSelector(
|
||||
getCalling,
|
||||
(state: CallingStateType): CallsByConversationType =>
|
||||
state.callsByConversation
|
||||
);
|
||||
|
||||
export const getCallSelector = createSelector(
|
||||
getCallsByConversation,
|
||||
(callsByConversation: CallsByConversationType) => (conversationId: string) =>
|
||||
getOwn(callsByConversation, conversationId)
|
||||
);
|
||||
|
||||
// In theory, there could be multiple incoming calls. In practice, neither RingRTC nor the
|
||||
// UI are ready to handle this.
|
||||
export const getIncomingCall = createSelector(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue