style: Document & refactor rooms/event_handler service

This commit is contained in:
timedout committed 2026-06-27 18:36:44 +01:00
1 parent 0a162b7bc4
commit 19f4c24c00
13 files changed
+1884 -1846

No files matched your search

+3
View File
@@ -94,10 +94,13 @@ impl crate::Service for Service {
}
impl Service {
/// Checks if a single event exists. Alias for
/// `self.services.timeline.pdu_exists`.
async fn event_exists(&self, event_id: OwnedEventId) -> bool {
self.services.timeline.pdu_exists(&event_id).await
}
/// Fetches a single PDU, returning None if there is an error.
async fn event_fetch(&self, event_id: OwnedEventId) -> Option<PduEvent> {
self.services.timeline.get_pdu(&event_id).await.ok()
}