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

@ -107,10 +107,15 @@ function getCallHistoryFilter({
function renderCallLinkDetails(
roomId: string,
callHistoryGroup: CallHistoryGroup
callHistoryGroup: CallHistoryGroup,
onClose: () => void
): JSX.Element {
return (
<SmartCallLinkDetails roomId={roomId} callHistoryGroup={callHistoryGroup} />
<SmartCallLinkDetails
roomId={roomId}
callHistoryGroup={callHistoryGroup}
onClose={onClose}
/>
);
}
@ -167,11 +172,8 @@ export const SmartCallsTab = memo(function SmartCallsTab() {
startCallLinkLobbyByRoomId,
togglePip,
} = useCallingActions();
const {
clearAllCallHistory: clearCallHistory,
markCallHistoryRead,
markCallsTabViewed,
} = useCallHistoryActions();
const { clearAllCallHistory, markCallHistoryRead, markCallsTabViewed } =
useCallHistoryActions();
const { toggleCallLinkEditModal, toggleConfirmLeaveCallModal } =
useGlobalModalActions();
@ -244,7 +246,7 @@ export const SmartCallsTab = memo(function SmartCallsTab() {
hasPendingUpdate={hasPendingUpdate}
i18n={i18n}
navTabsCollapsed={navTabsCollapsed}
onClearCallHistory={clearCallHistory}
onClearCallHistory={clearAllCallHistory}
onMarkCallHistoryRead={markCallHistoryRead}
onToggleNavTabsCollapse={toggleNavTabsCollapse}
onCreateCallLink={handleCreateCallLink}