This commit is contained in:
Ren Amamiya
2026-03-31 12:25:05 +07:00
parent c1b0b81e25
commit e9809ccfc7
2 changed files with 49 additions and 4 deletions

View File

@@ -468,7 +468,15 @@ impl ChatRegistry {
self.trashes.clone()
}
/// Get the relays that have seen a given message.
/// Get the relays that have seen a given rumor id.
pub fn rumor_seen_on(&self, id: &EventId) -> Option<HashSet<RelayUrl>> {
self.event_map
.read_blocking()
.get(id)
.map(|id| self.seen_on(id))
}
/// Get the relays that have seen a given gift wrap id.
pub fn seen_on(&self, id: &EventId) -> HashSet<RelayUrl> {
self.seens
.read_blocking()