JMAP/changes: Return the correct container/item change id when there are no changes

This commit is contained in:
mdecimus
2026-01-19 16:00:51 -03:00
parent 3c0312df1e
commit a05a047bd3
3 changed files with 60 additions and 27 deletions

View File

@@ -198,7 +198,7 @@ pub async fn test(params: &mut JMAPTest) {
state
);
if let State::Initial = state {
if &State::Initial == state {
new_state = State::parse_str(changes.new_state()).unwrap();
}
@@ -312,6 +312,7 @@ pub async fn test(params: &mut JMAPTest) {
assert_eq!(created, vec![2, 3, 11, 12]);
assert_eq!(changes.updated(), Vec::<String>::new());
assert_eq!(changes.destroyed(), Vec::<String>::new());
params.destroy_all_mailboxes(account).await;
params.assert_is_empty().await;
}