default to None for room topic event in spaces or /publicRooms

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-01-15 01:51:27 -05:00 committed by June
parent ef10a2df36
commit bfc738d80e
2 changed files with 4 additions and 2 deletions

View file

@ -246,7 +246,8 @@ pub(crate) async fn get_public_rooms_filtered_helper(
error!("Invalid room topic event in database for room {}", room_id);
Error::bad_database("Invalid room topic event in database.")
})
})?,
})
.unwrap_or_default(),
world_readable: services()
.rooms
.state_accessor

View file

@ -346,7 +346,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_default(),
world_readable: services()
.rooms
.state_accessor