From ce414023a4f9a01909216a92e0d73513533a9a3c Mon Sep 17 00:00:00 2001 From: strawberry Date: Sun, 31 Mar 2024 12:12:35 -0400 Subject: [PATCH] default to None room topic if invalid/redacted for spaces too Signed-off-by: strawberry --- src/service/rooms/spaces/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/service/rooms/spaces/mod.rs b/src/service/rooms/spaces/mod.rs index 478aaa65..ed896ae8 100644 --- a/src/service/rooms/spaces/mod.rs +++ b/src/service/rooms/spaces/mod.rs @@ -572,7 +572,8 @@ impl Service { error!("Invalid room topic event in database for room {}", room_id); Error::bad_database("Invalid room topic event in database.") }) - })?, + }) + .unwrap_or(None), world_readable: world_readable(room_id)?, guest_can_join: guest_can_join(room_id)?, avatar_url: services()