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
2 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue