mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2024-11-29 18:36:21 +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!("Invalid room topic event in database for room {}", room_id);
|
||||||
Error::bad_database("Invalid room topic event in database.")
|
Error::bad_database("Invalid room topic event in database.")
|
||||||
})
|
})
|
||||||
})?,
|
})
|
||||||
|
.unwrap_or_default(),
|
||||||
world_readable: services()
|
world_readable: services()
|
||||||
.rooms
|
.rooms
|
||||||
.state_accessor
|
.state_accessor
|
||||||
|
|
|
@ -346,7 +346,8 @@ impl Service {
|
||||||
error!("Invalid room topic event in database for room {}", room_id);
|
error!("Invalid room topic event in database for room {}", room_id);
|
||||||
Error::bad_database("Invalid room topic event in database.")
|
Error::bad_database("Invalid room topic event in database.")
|
||||||
})
|
})
|
||||||
})?,
|
})
|
||||||
|
.unwrap_or_default(),
|
||||||
world_readable: services()
|
world_readable: services()
|
||||||
.rooms
|
.rooms
|
||||||
.state_accessor
|
.state_accessor
|
||||||
|
|
Loading…
Reference in a new issue