docs: add todo comments

This commit is contained in:
xeruf 2025-05-09 17:27:24 +02:00
parent a7c6cf2f59
commit 8e9357cc78
3 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,2 @@
// Mostr Library Crate
// Placeholder for tests to not include main.rs bulk

View file

@ -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();
}

View file

@ -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