calculate ancestor reply path

This works really well going back in time because no branching, assuming
the last referenced event id is the only note they are replying to...

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-04-18 10:31:54 -07:00
parent cca8738519
commit 6ce5484d74
3 changed files with 88 additions and 22 deletions

View File

@@ -19,7 +19,7 @@ func highlight_color(_ h: Highlight) -> Color {
switch h {
case .none: return Color.black
case .main: return Color.red
case .replied_to: return Color.blue
case .reply: return Color.blue
}
}