fix: column lose state when navigate back

This commit is contained in:
reya
2024-05-23 08:00:33 +07:00
parent 3a3f960dde
commit dc7762ca11
12 changed files with 10238 additions and 7717 deletions

View File

@@ -109,7 +109,13 @@ pub async fn get_local_events(
};
let authors: Vec<PublicKey> = pubkeys
.into_iter()
.map(|p| PublicKey::from_hex(p).unwrap())
.map(|p| {
if p.starts_with("npub1") {
PublicKey::from_bech32(p).unwrap()
} else {
PublicKey::from_hex(p).unwrap()
}
})
.collect();
let filter = Filter::new()
.kinds(vec![Kind::TextNote, Kind::Repost])