Merge pull request #1094 from matthiasbeyer/libimagdiary/is_in_diary
Base IsInDiary::is_in_diary() on StoreId::is_in_collection()
This commit is contained in:
commit
87ad85ab3d
1 changed files with 2 additions and 2 deletions
|
@ -43,11 +43,11 @@ impl IsInDiary for Entry {
|
|||
impl IsInDiary for StoreId {
|
||||
|
||||
fn is_in_diary(&self, name: &str) -> bool {
|
||||
self.local().starts_with(format!("diary/{}", name))
|
||||
self.is_in_collection(&["diary", name])
|
||||
}
|
||||
|
||||
fn is_a_diary_entry(&self) -> bool {
|
||||
self.local().starts_with("diary")
|
||||
self.is_in_collection(&["diary"])
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue