Fix JMAP: Require accountId argument on requests

This commit is contained in:
Maurus Decimus
2026-06-18 19:05:07 +02:00
parent 169590208d
commit 18411f8e9e
18 changed files with 149 additions and 96 deletions

View File

@@ -132,6 +132,7 @@ impl Account {
})
.collect::<Vec<Value>>();
let arguments = [
("accountId".to_string(), self.id_string().into()),
("filter".to_string(), Value::Object(filter)),
("sort".to_string(), Value::Array(sort_by)),
]
@@ -295,6 +296,7 @@ impl Account {
self.jmap_method_calls(json!([[
format!("{object}/changes"),
{
"accountId": self.id_string(),
"sinceState": state.to_string()
},
"0"