default to None room topic if invalid/redacted for spaces too

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-31 12:12:35 -04:00 committed by June
parent c61aee4f1c
commit ce414023a4
1 changed files with 2 additions and 1 deletions

View File

@ -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()