diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2026-02-27 13:22:59 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2026-02-27 17:47:17 -0500 |
| commit | 6ab0f42250294e38e8da6a48260ff83544a6be9a (patch) | |
| tree | 088849f5c7d84ac1ddfb79763dfd7e7c145e9de6 /src/message/app.rs | |
| parent | d84e7eca7af7c906f86cfaa14ade909b7dae975a (diff) | |
Add trivial dispatch to push event delivery.
This should stop us from trying to update unread when sending a test notification, or showing the test notification when updating unread.
(Also fixes a missing `await`.)
Diffstat (limited to 'src/message/app.rs')
| -rw-r--r-- | src/message/app.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message/app.rs b/src/message/app.rs index 8200650..b79dad0 100644 --- a/src/message/app.rs +++ b/src/message/app.rs @@ -10,7 +10,7 @@ use crate::{ db, db::NotFound as _, error::failed::{Failed, ResultExt as _}, - event::{Broadcaster, Sequence, repo::Provider as _}, + event::{Broadcaster, Event, Sequence, repo::Provider as _}, login::Login, push::{Publish, repo::Provider as _}, user::{self, repo::Provider as _}, @@ -186,7 +186,7 @@ where for event in events { let failures = self .publisher - .publish(event, &signer, &push_recipients) + .publish(Event::from(event), &signer, &push_recipients) .await .fail("Failed to publish push events")?; |
