first pass at xpc impl
This commit is contained in:
@@ -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>(),
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user