This commit is contained in:
Ren Amamiya
2026-03-30 11:57:12 +07:00
parent 07c0e4fd18
commit 128f7a1242
2 changed files with 73 additions and 9 deletions

View File

@@ -450,6 +450,11 @@ impl ChatRegistry {
self.trashes.read(cx).len()
}
/// Get the trash messages entity.
pub fn trashes(&self) -> Entity<BTreeSet<FailedMessage>> {
self.trashes.clone()
}
/// Get the relays that have seen a given message.
pub fn seen_on(&self, id: &EventId) -> HashSet<RelayUrl> {
self.seens