Skip to content

Commit ca82074

Browse files
committed
Sync newest first
1 parent edd8ecf commit ca82074

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/imessage/cloud_messages.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,14 @@ impl<P: AnisetteProvider> CloudMessagesClient<P> {
505505
let zone = container.private_zone(zone.to_string());
506506
let key = container.get_zone_encryption_config(&zone, &self.keychain, &MESSAGES_SERVICE).await?;
507507
let (_assets, response) = container.perform(&CloudKitSession::new(),
508-
FetchRecordChangesOperation::new(zone.clone(), continuation_token, &NO_ASSETS)).await?;
508+
FetchRecordChangesOperation(cloudkit_proto::RetrieveChangesRequest {
509+
sync_continuation_token: continuation_token,
510+
zone_identifier: Some(zone.clone()),
511+
requested_changes_types: Some(3), // figure out
512+
assets_to_download: Some(NO_ASSETS.clone()),
513+
newest_first: Some(true),
514+
..Default::default()
515+
})).await?;
509516

510517
let mut results = HashMap::new();
511518

0 commit comments

Comments
 (0)