explicitly fallback to None for invalid/empty room topics
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -247,7 +247,7 @@ pub(crate) async fn get_public_rooms_filtered_helper(
|
|||||||
Error::bad_database("Invalid room topic event in database.")
|
Error::bad_database("Invalid room topic event in database.")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.unwrap_or_default(),
|
.unwrap_or(None),
|
||||||
world_readable: services()
|
world_readable: services()
|
||||||
.rooms
|
.rooms
|
||||||
.state_accessor
|
.state_accessor
|
||||||
|
|||||||
@@ -347,7 +347,7 @@ impl Service {
|
|||||||
Error::bad_database("Invalid room topic event in database.")
|
Error::bad_database("Invalid room topic event in database.")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.unwrap_or_default(),
|
.unwrap_or(None),
|
||||||
world_readable: services()
|
world_readable: services()
|
||||||
.rooms
|
.rooms
|
||||||
.state_accessor
|
.state_accessor
|
||||||
|
|||||||
Reference in New Issue
Block a user