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 { getActiveCallState } from '../selectors/calling';
|
||||||
import { useCallHistoryActions } from '../ducks/callHistory';
|
import { useCallHistoryActions } from '../ducks/callHistory';
|
||||||
import { getCallHistoryEdition } from '../selectors/callHistory';
|
import { getCallHistoryEdition } from '../selectors/callHistory';
|
||||||
import * as log from '../../logging/log';
|
|
||||||
|
|
||||||
function getCallHistoryFilter(
|
function getCallHistoryFilter(
|
||||||
allConversations: Array<ConversationType>,
|
allConversations: Array<ConversationType>,
|
||||||
|
@ -100,8 +99,8 @@ export function SmartCallsTab(): JSX.Element {
|
||||||
|
|
||||||
const getCallHistoryGroupsCount = useCallback(
|
const getCallHistoryGroupsCount = useCallback(
|
||||||
async (options: CallHistoryFilterOptions) => {
|
async (options: CallHistoryFilterOptions) => {
|
||||||
// Informs us if the call history has changed
|
// Used to fire effects when all calls are erased
|
||||||
log.info('getCallHistoryGroupsCount: edition', callHistoryEdition);
|
void callHistoryEdition;
|
||||||
const callHistoryFilter = getCallHistoryFilter(
|
const callHistoryFilter = getCallHistoryFilter(
|
||||||
allConversations,
|
allConversations,
|
||||||
regionCode,
|
regionCode,
|
||||||
|
@ -113,7 +112,6 @@ export function SmartCallsTab(): JSX.Element {
|
||||||
const count = await window.Signal.Data.getCallHistoryGroupsCount(
|
const count = await window.Signal.Data.getCallHistoryGroupsCount(
|
||||||
callHistoryFilter
|
callHistoryFilter
|
||||||
);
|
);
|
||||||
log.info('getCallHistoryGroupsCount: count', count, callHistoryFilter);
|
|
||||||
return count;
|
return count;
|
||||||
},
|
},
|
||||||
[allConversations, regionCode, callHistoryEdition]
|
[allConversations, regionCode, callHistoryEdition]
|
||||||
|
@ -124,8 +122,8 @@ export function SmartCallsTab(): JSX.Element {
|
||||||
options: CallHistoryFilterOptions,
|
options: CallHistoryFilterOptions,
|
||||||
pagination: CallHistoryPagination
|
pagination: CallHistoryPagination
|
||||||
) => {
|
) => {
|
||||||
// Informs us if the call history has changed
|
// Used to fire effects when all calls are erased
|
||||||
log.info('getCallHistoryGroups: edition', callHistoryEdition);
|
void callHistoryEdition;
|
||||||
const callHistoryFilter = getCallHistoryFilter(
|
const callHistoryFilter = getCallHistoryFilter(
|
||||||
allConversations,
|
allConversations,
|
||||||
regionCode,
|
regionCode,
|
||||||
|
@ -138,11 +136,6 @@ export function SmartCallsTab(): JSX.Element {
|
||||||
callHistoryFilter,
|
callHistoryFilter,
|
||||||
pagination
|
pagination
|
||||||
);
|
);
|
||||||
log.info(
|
|
||||||
'getCallHistoryGroupsCount: results',
|
|
||||||
results,
|
|
||||||
callHistoryFilter
|
|
||||||
);
|
|
||||||
return results;
|
return results;
|
||||||
},
|
},
|
||||||
[allConversations, regionCode, callHistoryEdition]
|
[allConversations, regionCode, callHistoryEdition]
|
||||||
|
|
Loading…
Reference in a new issue