chore: Reduce meta conversation API calls (#11116)

This PR would reduce the API calls if there are more than 100 total
conversations, we will throttle requests the number of requests.

Earlier this was 1000 total conversations.
This commit is contained in:
Pranav
2025-03-20 13:08:59 -07:00
committed by GitHub
parent 41be634db0
commit 359b992683

View File

@@ -18,7 +18,7 @@ export const actions = {
const lastUpdatedTime = new Date($state.updatedOn);
// Skip large accounts from making too many requests
if (currentTime - lastUpdatedTime < 10000 && $state.allCount > 1000) {
if (currentTime - lastUpdatedTime < 10000 && $state.allCount > 100) {
// eslint-disable-next-line no-console
console.warn('Skipping conversation meta fetch');
return;