mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 07:26:29 +03:00
fix: Update quota if it's stale, not fresh (#5683)
This commit is contained in:
@@ -477,7 +477,7 @@ async fn inbox_fetch_idle(ctx: &Context, imap: &mut Imap, mut session: Session)
|
||||
let quota = ctx.quota.read().await;
|
||||
quota
|
||||
.as_ref()
|
||||
.filter(|quota| time_elapsed("a.modified) > Duration::from_secs(60))
|
||||
.filter(|quota| time_elapsed("a.modified) < Duration::from_secs(60))
|
||||
.is_none()
|
||||
};
|
||||
if quota_needs_update {
|
||||
|
||||
Reference in New Issue
Block a user