From 902fe7b7ab1ae957078fd8115436f9e437182cbb Mon Sep 17 00:00:00 2001 From: Ginger Date: Wed, 24 Sep 2025 16:45:11 -0400 Subject: [PATCH] fix: Fix panic in debug builds caused by MSC4133 migration --- src/service/migrations.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/service/migrations.rs b/src/service/migrations.rs index eff3ab6d..42a622c2 100644 --- a/src/service/migrations.rs +++ b/src/service/migrations.rs @@ -9,6 +9,7 @@ use conduwuit::{ }, warn, }; +use database::Json; use futures::{FutureExt, StreamExt, TryStreamExt}; use itertools::Itertools; use ruma::{ @@ -606,7 +607,7 @@ async fn fix_corrupt_msc4133_fields(services: &Services) -> Result { ); }; - useridprofilekey_value.put((user, key), new_value); + useridprofilekey_value.put((user, key), Json(new_value)); fixed = fixed.saturating_add(1); } total = total.saturating_add(1);