commit 548325c478fc1ea74271c47d11ef0cb8e4139fed
parent 5b67a53b619b06be6d6cf8a8d70e749b0c97f139
Author: William Casarin <jb55@jb55.com>
Date: Sun, 24 Dec 2023 18:13:26 -0800
only add kind1 to timeline
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/app.rs b/src/app.rs
@@ -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> {