Fix calls tab clearing clicking on old calls

This commit is contained in:
Jamie Kyle 2023-11-27 14:07:13 -08:00 committed by GitHub
parent c3248be854
commit 55dca745c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 11 deletions

View file

@ -110,8 +110,6 @@ export function SmartCallsTab(): JSX.Element {
const getCallHistoryGroupsCount = useCallback(
async (options: CallHistoryFilterOptions) => {
// Used to fire effects when all calls are erased
void callHistoryEdition;
const callHistoryFilter = getCallHistoryFilter(
allConversations,
regionCode,
@ -125,7 +123,7 @@ export function SmartCallsTab(): JSX.Element {
);
return count;
},
[allConversations, regionCode, callHistoryEdition]
[allConversations, regionCode]
);
const getCallHistoryGroups = useCallback(
@ -133,8 +131,6 @@ export function SmartCallsTab(): JSX.Element {
options: CallHistoryFilterOptions,
pagination: CallHistoryPagination
) => {
// Used to fire effects when all calls are erased
void callHistoryEdition;
const callHistoryFilter = getCallHistoryFilter(
allConversations,
regionCode,
@ -149,7 +145,7 @@ export function SmartCallsTab(): JSX.Element {
);
return results;
},
[allConversations, regionCode, callHistoryEdition]
[allConversations, regionCode]
);
useEffect(() => {
@ -164,6 +160,7 @@ export function SmartCallsTab(): JSX.Element {
getConversation={getConversation}
getCallHistoryGroupsCount={getCallHistoryGroupsCount}
getCallHistoryGroups={getCallHistoryGroups}
callHistoryEdition={callHistoryEdition}
hasFailedStorySends={hasFailedStorySends}
hasPendingUpdate={hasPendingUpdate}
i18n={i18n}