mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2024-11-25 22:48:34 +00:00
default to None for room topic event in spaces or /publicRooms
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
ef10a2df36
commit
bfc738d80e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue