fix: Update quota if it's stale, not fresh (#5683)

This commit is contained in:
iequidoo
2024-06-26 12:11:50 -03:00
committed by iequidoo
parent 11e13d1873
commit 72a1406b86
2 changed files with 2 additions and 2 deletions

View File

@@ -547,7 +547,7 @@ impl Context {
.as_ref()
.filter(|quota| {
time_elapsed(&quota.modified)
> Duration::from_secs(DC_BACKGROUND_FETCH_QUOTA_CHECK_RATELIMIT)
< Duration::from_secs(DC_BACKGROUND_FETCH_QUOTA_CHECK_RATELIMIT)
})
.is_none()
};