mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
carddav: Remove enforcement of UID matching filename (Apple Contacts doesn't play well)
This commit is contained in:
@@ -20,17 +20,7 @@ impl TryFrom<AddressObjectRow> for AddressObject {
|
||||
type Error = rustical_store::Error;
|
||||
|
||||
fn try_from(value: AddressObjectRow) -> Result<Self, Self::Error> {
|
||||
let object = Self::from_vcf(value.vcf)?;
|
||||
if object.get_id() != value.id {
|
||||
return Err(rustical_store::Error::IcalError(
|
||||
rustical_ical::Error::InvalidData(format!(
|
||||
"object_id={} and UID={} don't match",
|
||||
object.get_id(),
|
||||
value.id
|
||||
)),
|
||||
));
|
||||
}
|
||||
Ok(object)
|
||||
Ok(Self::from_vcf(value.id, value.vcf)?)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user