mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
style: Document & refactor rooms/event_handler service
This commit is contained in:
13 files changed
+1884
-1846
No files matched your search
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user