This commit is contained in:
2026-10-20 14:36:56 +07:00
parent 0f0216051f
commit d64da17c5c
6 changed files with 70 additions and 314 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ use instant::Duration;
use itertools::Itertools;
use nip4e::DeviceRegistry;
use nostr_sdk::prelude::*;
use person::{Directory, Person, WebOfTrust};
use person::{Directory, Person, PersonRegistry};
use settings::{AppSettings, RoomConfig, SignerKind};
use state::{NostrRegistry, TIMEOUT, UniversalSigner};
@@ -190,7 +190,7 @@ impl Room {
return false;
}
let wot = WebOfTrust::global(cx).read(cx);
let wot = PersonRegistry::global(cx).read(cx).wot().read(cx);
Self::trusted_by(&self.members, me, |key| wot.is_in_network(key))
}
@@ -203,7 +203,7 @@ impl Room {
return false;
};
let wot = WebOfTrust::global(cx).read(cx);
let wot = PersonRegistry::global(cx).read(cx).wot().read(cx);
Self::trusted_by(&self.members, me, |key| !wot.is_outside(key))
}