Skip to content

Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.

Remove the dead locking inference

Yashwanth Kamireddi70abda39809e
diff --git a/crates/quince-icloud/src/notes.rs b/crates/quince-icloud/src/notes.rs
index 0da6011..63b2359 100644
--- a/crates/quince-icloud/src/notes.rs
+++ b/crates/quince-icloud/src/notes.rs
@@ -28,13 +28,6 @@ fn note_from_record(record: &Value) -> Option<Note> {
let title = field::document_text(record, "TitleEncrypted");
let body = field::document_text(record, "TextDataEncrypted");
- // A note whose body will not decode while a title will is locked by its owner: Apple
- // holds those genuinely encrypted. Saying so beats rendering an empty note.
- let locked = body.is_none()
- && record
- .get("fields")
- .is_some_and(|f| f.get("TextDataEncrypted").is_some());
-
Some(Note {
guid,
folder_guid: field::reference(record, "Folder"),