Update groupCallHistoryGroups queries

This commit is contained in:
Jamie Kyle 2023-08-09 10:21:54 -07:00 committed by Jamie Kyle
parent af0beb6d8e
commit 063ef87e48

View file

@ -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<ConversationType>,
@ -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]