Private
Public Access
1
0

first pass at xpc impl

This commit is contained in:
James Magahern
2025-08-01 12:26:17 -07:00
parent 43b668e9a2
commit 911454aafb
29 changed files with 761 additions and 141 deletions

View File

@@ -28,9 +28,13 @@ impl From<kordophone::model::Message> for Message {
contact_id: None,
// Weird server quirk: some sender handles are encoded with control characters.
handle: sender.chars()
.filter(|c| !c.is_control() && !matches!(c,
'\u{202A}' | // LRE
handle: sender
.chars()
.filter(|c| {
!c.is_control()
&& !matches!(
c,
'\u{202A}' | // LRE
'\u{202B}' | // RLE
'\u{202C}' | // PDF
'\u{202D}' | // LRO
@@ -38,8 +42,9 @@ impl From<kordophone::model::Message> for Message {
'\u{2066}' | // LRI
'\u{2067}' | // RLI
'\u{2068}' | // FSI
'\u{2069}' // PDI
))
'\u{2069}' // PDI
)
})
.collect::<String>(),
},