RFC9698 - JMAPACCESS Extension for IMAP

This commit is contained in:
mdecimus
2025-05-16 16:44:37 +02:00
parent 10bb4e5661
commit cee4149ef4
15 changed files with 18 additions and 24 deletions

View File

@@ -602,7 +602,7 @@ impl PrincipalSet {
pub fn has_int_value(&self, key: PrincipalField, value: u64) -> bool {
self.fields.get(&key).is_some_and(|v| match v {
PrincipalValue::Integer(v) => *v == value,
PrincipalValue::IntegerList(l) => l.iter().any(|v| *v == value),
PrincipalValue::IntegerList(l) => l.contains(&value),
PrincipalValue::String(_) | PrincipalValue::StringList(_) => false,
})
}