diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-06-18 23:33:02 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-06-20 22:27:35 -0400 |
| commit | 4b522c804db8155f74a734c95ed962d996b2c692 (patch) | |
| tree | f5369ba821ba22cdd307b7a3a411e95ad1a1e896 /src/boot/mod.rs | |
| parent | 057bbef5f37a4051615ad23661a0b4853b61162e (diff) | |
Include historical events in the boot response.
The returned events are all events up to and including the `resume_point` in the same response. If combined with the events from `/api/events?resume_point=x`, using the same `resume_point`, the client will have a complete event history, less any events from histories that have been purged.
Diffstat (limited to 'src/boot/mod.rs')
| -rw-r--r-- | src/boot/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/boot/mod.rs b/src/boot/mod.rs index 3fc2c9e..148e87d 100644 --- a/src/boot/mod.rs +++ b/src/boot/mod.rs @@ -1,6 +1,4 @@ -use serde::Serialize; - -use crate::{channel::Channel, event::Sequence, message::Message, user::User}; +use crate::{channel::Channel, event::Event, event::Sequence, message::Message, user::User}; pub mod app; pub mod handlers; @@ -11,4 +9,5 @@ pub struct Snapshot { pub users: Vec<User>, pub channels: Vec<Channel>, pub messages: Vec<Message>, + pub events: Vec<Event>, } |
