From 0fd91652def0e1a67df715f8fcc8c0fe0ffa423a Mon Sep 17 00:00:00 2001 From: Remco Smits Date: Tue, 26 Mar 2024 20:25:09 +0100 Subject: [PATCH] Fixed channel chat notifications are not working anymore (#9827) This PR will fix the following issues that were introduced by the following pull request #9557. - Cannot create messages with a mention inside it - Cannot invite a user - Cannot accept an invitation Release Notes: - Fixed channel chat notifications are not working anymore. Co-authored-by: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com> --- crates/collab/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/collab/src/lib.rs b/crates/collab/src/lib.rs index 7826978b45..268d89dd10 100644 --- a/crates/collab/src/lib.rs +++ b/crates/collab/src/lib.rs @@ -159,7 +159,8 @@ impl AppState { pub async fn new(config: Config, executor: Executor) -> Result> { let mut db_options = db::ConnectOptions::new(config.database_url.clone()); db_options.max_connections(config.database_max_connections); - let db = Database::new(db_options, Executor::Production).await?; + let mut db = Database::new(db_options, Executor::Production).await?; + db.initialize_notification_kinds().await?; let live_kit_client = if let Some(((server, key), secret)) = config .live_kit_server