JMAP Registry API implementation - part 10

This commit is contained in:
mdecimus
2026-03-06 19:50:10 +01:00
parent 9f9ddee965
commit d15efc6fb9
67 changed files with 2186 additions and 1879 deletions

View File

@@ -203,7 +203,10 @@ impl ItipIngest for Server {
.saturating_sub(event_.inner.size.to_native() as u64);
if extra_bytes > 0
&& self
.has_available_quota(account_id, extra_bytes)
.has_available_quota(
self.account(account_id).await?.as_ref(),
extra_bytes,
)
.await
.is_err()
{
@@ -309,7 +312,10 @@ impl ItipIngest for Server {
// Validate quota
if self
.has_available_quota(account_id, itip_message.len() as u64)
.has_available_quota(
self.account(account_id).await?.as_ref(),
itip_message.len() as u64,
)
.await
.is_err()
{