From 063ef87e4853a83ec7aed39cbefa61a6762f8e67 Mon Sep 17 00:00:00 2001 From: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> Date: Wed, 9 Aug 2023 10:21:54 -0700 Subject: [PATCH] Update groupCallHistoryGroups queries --- ts/state/smart/CallsTab.tsx | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/ts/state/smart/CallsTab.tsx b/ts/state/smart/CallsTab.tsx index dbf37bd7c0d4..73a571e92076 100644 --- a/ts/state/smart/CallsTab.tsx +++ b/ts/state/smart/CallsTab.tsx @@ -27,7 +27,6 @@ import { useCallingActions } from '../ducks/calling'; import { getActiveCallState } from '../selectors/calling'; import { useCallHistoryActions } from '../ducks/callHistory'; import { getCallHistoryEdition } from '../selectors/callHistory'; -import * as log from '../../logging/log'; function getCallHistoryFilter( allConversations: Array, @@ -100,8 +99,8 @@ export function SmartCallsTab(): JSX.Element { const getCallHistoryGroupsCount = useCallback( async (options: CallHistoryFilterOptions) => { - // Informs us if the call history has changed - log.info('getCallHistoryGroupsCount: edition', callHistoryEdition); + // Used to fire effects when all calls are erased + void callHistoryEdition; const callHistoryFilter = getCallHistoryFilter( allConversations, regionCode, @@ -113,7 +112,6 @@ export function SmartCallsTab(): JSX.Element { const count = await window.Signal.Data.getCallHistoryGroupsCount( callHistoryFilter ); - log.info('getCallHistoryGroupsCount: count', count, callHistoryFilter); return count; }, [allConversations, regionCode, callHistoryEdition] @@ -124,8 +122,8 @@ export function SmartCallsTab(): JSX.Element { options: CallHistoryFilterOptions, pagination: CallHistoryPagination ) => { - // Informs us if the call history has changed - log.info('getCallHistoryGroups: edition', callHistoryEdition); + // Used to fire effects when all calls are erased + void callHistoryEdition; const callHistoryFilter = getCallHistoryFilter( allConversations, regionCode, @@ -138,11 +136,6 @@ export function SmartCallsTab(): JSX.Element { callHistoryFilter, pagination ); - log.info( - 'getCallHistoryGroupsCount: results', - results, - callHistoryFilter - ); return results; }, [allConversations, regionCode, callHistoryEdition]