Fixed calendar metadata sync

This commit is contained in:
daladim 2021-04-04 01:02:37 +02:00
parent f2dd528d33
commit aa02fa182d
9 changed files with 92 additions and 68 deletions

View file

@ -80,10 +80,10 @@ impl Item {
}
}
pub fn has_same_observable_content(&self, other: &Item) -> bool {
pub fn has_same_observable_content_as(&self, other: &Item) -> bool {
match (self, other) {
(Item::Event(s), Item::Event(o)) => s.has_same_observable_content(o),
(Item::Task(s), Item::Task(o)) => s.has_same_observable_content(o),
(Item::Event(s), Item::Event(o)) => s.has_same_observable_content_as(o),
(Item::Task(s), Item::Task(o)) => s.has_same_observable_content_as(o),
_ => false,
}
}