many improvements

This commit is contained in:
William Casarin
2022-12-12 14:33:37 -08:00
parent e629402d11
commit 48af3dde9d
15 changed files with 334 additions and 118 deletions

16
src/contacts.rs Normal file
View File

@@ -0,0 +1,16 @@
use enostr::{EventId, Profile, Pubkey};
use std::collections::HashMap;
pub struct Contacts {
pub events: HashMap<Pubkey, EventId>,
pub profiles: HashMap<Pubkey, Profile>,
}
impl Contacts {
pub fn new() -> Contacts {
Contacts {
events: HashMap::new(),
profiles: HashMap::new(),
}
}
}