Support delete for call links
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
parent
11fed7e7f8
commit
9a9f9495f1
67 changed files with 853 additions and 345 deletions
|
@ -62,7 +62,8 @@ type CallsTabProps = Readonly<{
|
|||
preferredLeftPaneWidth: number;
|
||||
renderCallLinkDetails: (
|
||||
roomId: string,
|
||||
callHistoryGroup: CallHistoryGroup
|
||||
callHistoryGroup: CallHistoryGroup,
|
||||
onClose: () => void
|
||||
) => JSX.Element;
|
||||
renderConversationDetails: (
|
||||
conversationId: string,
|
||||
|
@ -152,6 +153,10 @@ export function CallsTab({
|
|||
[updateSelectedView]
|
||||
);
|
||||
|
||||
const onCloseSelectedView = useCallback(() => {
|
||||
updateSelectedView(null);
|
||||
}, [updateSelectedView]);
|
||||
|
||||
useEscapeHandling(
|
||||
sidebarView === CallsTabSidebarView.NewCallView
|
||||
? () => {
|
||||
|
@ -328,7 +333,8 @@ export function CallsTab({
|
|||
{selectedView.type === 'callLink' &&
|
||||
renderCallLinkDetails(
|
||||
selectedView.roomId,
|
||||
selectedView.callHistoryGroup
|
||||
selectedView.callHistoryGroup,
|
||||
onCloseSelectedView
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue