diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-06-20 19:47:46 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-06-20 22:42:55 -0400 |
| commit | 7778cdf0c495a04f4f5f3f85b78348c8037a5771 (patch) | |
| tree | bd0e00d36ab1863f5609a3c0ee8936782ae794ca /src/boot/mod.rs | |
| parent | 639f4b422adb0a6fc809161dd816d8382cf88138 (diff) | |
Remove the snapshot fields from `/api/boot`.
Clients now _must_ construct their state from the event stream; it is no longer possible for them to delegate that work to the server.
Diffstat (limited to 'src/boot/mod.rs')
| -rw-r--r-- | src/boot/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/boot/mod.rs b/src/boot/mod.rs index 148e87d..e0d35d9 100644 --- a/src/boot/mod.rs +++ b/src/boot/mod.rs @@ -1,4 +1,4 @@ -use crate::{channel::Channel, event::Event, event::Sequence, message::Message, user::User}; +use crate::{event::Event, event::Sequence}; pub mod app; pub mod handlers; @@ -6,8 +6,5 @@ pub mod handlers; #[derive(serde::Serialize)] pub struct Snapshot { pub resume_point: Sequence, - pub users: Vec<User>, - pub channels: Vec<Channel>, - pub messages: Vec<Message>, pub events: Vec<Event>, } |
