Skip to content

Commit

Permalink
only add kind1 to timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jb55 committed Dec 25, 2023
1 parent 5b67a53 commit 548325c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,14 @@ fn process_event(damus: &mut Damus, _subid: &str, event: Event) {
return;
}

if event.kind == 0 {
let kind = event.kind;
if kind == 0 {
process_metadata_event(damus, &event);
} else if kind == 1 {
let cloned_id = event.id.clone();
damus.all_events.insert(cloned_id.clone(), event);
damus.events.insert(0, cloned_id);
}

let cloned_id = event.id.clone();
damus.all_events.insert(cloned_id.clone(), event);
damus.events.insert(0, cloned_id);
}

fn get_unknown_author_ids(damus: &Damus) -> Vec<Pubkey> {
Expand Down

0 comments on commit 548325c

Please sign in to comment.