Support delete for call links

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
Jamie Kyle 2024-08-06 12:29:13 -07:00 committed by GitHub
parent 11fed7e7f8
commit 9a9f9495f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
67 changed files with 853 additions and 345 deletions

View file

@ -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>
)}