diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-10-27 17:41:22 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-10-28 01:42:29 -0400 |
| commit | f305e487d619f1d993d11d728c8cf7261bf3b371 (patch) | |
| tree | 46ab6203babd5b93dcce00a0b7af7ae86dc0945e /src/app.rs | |
| parent | 6de7402a002791c6216b12a40e74af9c8ab82c02 (diff) | |
Convert `Invites` into a freestanding component.
Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -46,8 +46,8 @@ impl App { Events::new(self.db.clone(), self.events.clone()) } - pub const fn invites(&self) -> Invites<'_> { - Invites::new(&self.db, &self.events) + pub fn invites(&self) -> Invites { + Invites::new(self.db.clone(), self.events.clone()) } pub const fn logins(&self) -> Logins<'_> { @@ -83,3 +83,9 @@ impl FromRef<App> for Conversations { app.conversations() } } + +impl FromRef<App> for Invites { + fn from_ref(app: &App) -> Self { + app.invites() + } +} |
