This commit is contained in:
Ren Amamiya
2026-03-29 08:46:22 +07:00
parent a81022bb0b
commit 07c0e4fd18
4 changed files with 96 additions and 4 deletions

View File

@@ -445,6 +445,11 @@ impl ChatRegistry {
.count()
}
/// Count the number of trash messages.
pub fn count_trash_messages(&self, cx: &App) -> usize {
self.trashes.read(cx).len()
}
/// Get the relays that have seen a given message.
pub fn seen_on(&self, id: &EventId) -> HashSet<RelayUrl> {
self.seens