mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-09-07 20:44:15 +08:00
JMAP sortOrder should not be null (fixes #1831)
This commit is contained in:
parent
efdd2c9241
commit
7ae6ed12fb
1 changed files with 3 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue