JMAP sortOrder should not be null (fixes #1831)

This commit is contained in:
mdecimus 2025-07-16 16:39:09 +02:00
parent efdd2c9241
commit 7ae6ed12fb

View file

@ -101,7 +101,9 @@ impl MailboxGet for Server {
Value::Null
}
}
Property::SortOrder => Value::from(cached_mailbox.sort_order()),
Property::SortOrder => {
Value::from(cached_mailbox.sort_order().unwrap_or_default())
}
Property::ParentId => {
if let Some(parent_id) = cached_mailbox.parent_id() {
Value::Id((parent_id).into())