.
Some checks failed
Rust / build (ubuntu-latest, stable) (push) Failing after 1m26s
Rust / build (ubuntu-latest, stable) (pull_request) Failing after 1m22s
Rust / build (macos-latest, stable) (push) Has been cancelled
Rust / build (windows-latest, stable) (push) Has been cancelled
Rust / build (macos-latest, stable) (pull_request) Has been cancelled
Rust / build (windows-latest, stable) (pull_request) Has been cancelled

This commit is contained in:
2026-03-02 06:20:10 +07:00
parent f8e6b3ff7a
commit 703c4923ca
18 changed files with 767 additions and 641 deletions

View File

@@ -66,7 +66,7 @@ impl DeviceRegistry {
subscriptions.push(
// Observe the NIP-65 state
cx.observe(&nostr, |this, state, cx| {
if state.read(cx).relay_list_state() == RelayState::Configured {
if state.read(cx).relay_list_state == RelayState::Configured {
this.get_announcement(cx);
};
}),
@@ -477,7 +477,7 @@ impl DeviceRegistry {
let write_relays = nostr.read(cx).write_relays(&public_key, cx);
let app_keys = nostr.read(cx).app_keys().clone();
let app_keys = nostr.read(cx).app_keys.clone();
let app_pubkey = app_keys.public_key();
let task: Task<Result<Option<Keys>, Error>> = cx.background_spawn(async move {
@@ -549,7 +549,7 @@ impl DeviceRegistry {
/// Parse the response event for device keys from other devices
fn extract_encryption(&mut self, event: Event, cx: &mut Context<Self>) {
let nostr = NostrRegistry::global(cx);
let app_keys = nostr.read(cx).app_keys().clone();
let app_keys = nostr.read(cx).app_keys.clone();
let task: Task<Result<Keys, Error>> = cx.background_spawn(async move {
let root_device = event