Search call links in calls tab
This commit is contained in:
parent
fc9c5488c5
commit
dea641bae4
9 changed files with 384 additions and 112 deletions
|
@ -79,17 +79,13 @@ export type CallLinkSelectorType = (roomId: string) => CallLinkType | undefined;
|
|||
export const getCallLinkSelector = createSelector(
|
||||
getCallLinksByRoomId,
|
||||
(callLinksByRoomId: CallLinksByRoomIdType): CallLinkSelectorType =>
|
||||
(roomId: string): CallLinkType | undefined => {
|
||||
const callLinkState = getOwn(callLinksByRoomId, roomId);
|
||||
if (!callLinkState) {
|
||||
return;
|
||||
}
|
||||
(roomId: string): CallLinkType | undefined =>
|
||||
getOwn(callLinksByRoomId, roomId)
|
||||
);
|
||||
|
||||
return {
|
||||
roomId,
|
||||
...callLinkState,
|
||||
};
|
||||
}
|
||||
export const getAllCallLinks = createSelector(
|
||||
getCallLinksByRoomId,
|
||||
(lookup): Array<CallLinkType> => Object.values(lookup)
|
||||
);
|
||||
|
||||
export type CallSelectorType = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue