get all missing ids from all timelines

before we were only fetching missing profiles from the first timeline,
update the logic to pull both missing authors and ids from all timelines

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-04-12 18:52:32 -07:00
parent 5e45e4a2e5
commit d4ccf7435f
2 changed files with 96 additions and 56 deletions

View File

@@ -82,6 +82,10 @@ impl std::str::FromStr for Event {
pub struct EventId([u8; 32]);
impl EventId {
pub fn new(id: [u8; 32]) -> Self {
EventId(id)
}
pub fn hex(&self) -> String {
hex::encode(self.bytes())
}