Update groupCallHistoryGroups queries
This commit is contained in:
parent
af0beb6d8e
commit
063ef87e48
1 changed files with 4 additions and 11 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue