docs: add todo comments
This commit is contained in:
parent
a7c6cf2f59
commit
8e9357cc78
3 changed files with 6 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
// Mostr Library Crate
|
||||
// Placeholder for tests to not include main.rs bulk
|
|
@ -983,6 +983,7 @@ impl TasksRelay {
|
|||
fn history_from(&self, stamp: Timestamp) -> impl Iterator<Item=&Event> {
|
||||
self.history.get(&self.sender.pubkey())
|
||||
.map(|hist| {
|
||||
// TODO deduplicate - get earlier time for duplicated tracking?
|
||||
hist.values().rev().take_while_inclusive(move |e| e.created_at > stamp)
|
||||
}).into_iter().flatten()
|
||||
}
|
||||
|
@ -1005,6 +1006,7 @@ impl TasksRelay {
|
|||
.and_then(|id| self.get_by_id(&id))
|
||||
.is_some_and(|t| t.parent_id() == pos.as_ref())
|
||||
{
|
||||
// FIXME this triggers when moving up and into created task
|
||||
debug!("Flushing Tasks because of move beyond child");
|
||||
self.sender.flush();
|
||||
}
|
||||
|
|
|
@ -495,3 +495,5 @@ fn test_itertools() {
|
|||
assert_eq!("test toast".split(' ').collect_vec().len(), 3);
|
||||
assert_eq!("test toast".split_ascii_whitespace().collect_vec().len(), 2);
|
||||
}
|
||||
|
||||
// TODO subtask of done task visible in quick access but not accessible
|
Loading…
Add table
Reference in a new issue