diff --git a/src/api/client_server/directory.rs b/src/api/client_server/directory.rs index 52ac1b207ed17436937d33d72e00d30be17bbefc..2d5172b2b5241ed4a93ef019cdf269385308e1f5 100644 --- a/src/api/client_server/directory.rs +++ b/src/api/client_server/directory.rs @@ -247,7 +247,7 @@ pub(crate) async fn get_public_rooms_filtered_helper( Error::bad_database("Invalid room topic event in database.") }) }) - .unwrap_or_default(), + .unwrap_or(None), world_readable: services() .rooms .state_accessor diff --git a/src/service/rooms/spaces/mod.rs b/src/service/rooms/spaces/mod.rs index 4c763e86306a78f399a5f2630b07e91e17836fef..677ba2472d8ebbba44829984c4bb42c5b7f01b92 100644 --- a/src/service/rooms/spaces/mod.rs +++ b/src/service/rooms/spaces/mod.rs @@ -347,7 +347,7 @@ async fn get_room_chunk( Error::bad_database("Invalid room topic event in database.") }) }) - .unwrap_or_default(), + .unwrap_or(None), world_readable: services() .rooms .state_accessor