Skip to content

Commit 7d05860

Browse files
committed
Merge branch 'master' into persist_decks
2 parents 4b62f08 + de8029d commit 7d05860

29 files changed

+1110
-532
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ eframe = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da
1818
egui_extras = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb", package = "egui_extras", features = ["all_loaders"] }
1919
ehttp = "0.2.0"
2020
egui_tabs = { git = "https://github.com/damus-io/egui-tabs", branch = "egui-0.28" }
21-
egui_nav = { git = "https://github.com/damus-io/egui-nav", rev = "6ba42de2bae384d10e35c532f3856b81d2e9f645" }
21+
egui_nav = { git = "https://github.com/damus-io/egui-nav", rev = "956338a90e09c7cda951d554626483e0cdbc7825" }
2222
egui_virtual_list = { git = "https://github.com/jb55/hello_egui", branch = "egui-0.28", package = "egui_virtual_list" }
2323
reqwest = { version = "0.12.4", default-features = false, features = [ "rustls-tls-native-roots" ] }
2424
image = { version = "0.25", features = ["jpeg", "png", "webp"] }

enostr/src/relay/pool.rs

+14
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ pub struct PoolEvent<'a> {
1818
pub event: ewebsock::WsEvent,
1919
}
2020

21+
impl<'a> PoolEvent<'a> {
22+
pub fn into_owned(self) -> PoolEventBuf {
23+
PoolEventBuf {
24+
relay: self.relay.to_owned(),
25+
event: self.event,
26+
}
27+
}
28+
}
29+
30+
pub struct PoolEventBuf {
31+
pub relay: String,
32+
pub event: ewebsock::WsEvent,
33+
}
34+
2135
pub struct PoolRelay {
2236
pub relay: Relay,
2337
pub last_ping: Instant,

src/account_manager.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ use std::cmp::Ordering;
22

33
use enostr::{FilledKeypair, FullKeypair, Keypair};
44
use nostrdb::Ndb;
5+
use serde::{Deserialize, Serialize};
56

67
use crate::{
78
app::get_active_columns_mut,
89
decks::{AccountId, DecksCache},
910
imgcache::ImageCache,
10-
login_manager::LoginState,
11+
login_manager::AcquireKeyState,
1112
route::Route,
1213
storage::{KeyStorageResponse, KeyStorageType},
1314
ui::{
@@ -33,7 +34,7 @@ pub enum AccountsRouteResponse {
3334
AddAccount(AccountLoginResponse),
3435
}
3536

36-
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
37+
#[derive(Debug, Eq, PartialEq, Clone, Copy, Serialize, Deserialize)]
3738
pub enum AccountsRoute {
3839
Accounts,
3940
AddAccount,
@@ -54,7 +55,7 @@ pub fn render_accounts_route(
5455
img_cache: &mut ImageCache,
5556
accounts: &mut AccountManager,
5657
decks: &mut DecksCache,
57-
login_state: &mut LoginState,
58+
login_state: &mut AcquireKeyState,
5859
route: AccountsRoute,
5960
) -> Option<AccountSelectionResponse> {
6061
let resp = match route {

0 commit comments

Comments
 (0)