Skip to content
Snippets Groups Projects
Commit 0214caea authored by 🥺's avatar 🥺 :transgender_flag: Committed by 🥺
Browse files

always allow `count` to be filled in search response


i fail to see any reason why we would always want
this to be None

Signed-off-by: default avatarstrawberry <strawberry@puppygock.gay>
parent a2ee6b41
No related branches found
No related tags found
No related merge requests found
...@@ -167,11 +167,7 @@ pub async fn search_events_route(body: Ruma<search_events::v3::Request>) -> Resu ...@@ -167,11 +167,7 @@ pub async fn search_events_route(body: Ruma<search_events::v3::Request>) -> Resu
Ok(search_events::v3::Response::new(ResultCategories { Ok(search_events::v3::Response::new(ResultCategories {
room_events: ResultRoomEvents { room_events: ResultRoomEvents {
count: if cfg!(feature = "element_hacks") { count: Some((results.len() as u32).into()),
Some((results.len() as u32).into())
} else {
None
}, // TODO: set this to none. Element shouldn't depend on it (strawberry: why not?)
groups: BTreeMap::new(), // TODO groups: BTreeMap::new(), // TODO
next_batch, next_batch,
results, results,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment