Updated presets and added a 'sort by' feature.

This commit is contained in:
ktdd
2026-01-06 12:33:09 +02:00
parent 0c46432150
commit 7edd7c2e35
23 changed files with 103 additions and 47 deletions
+2
View File
@@ -54,6 +54,7 @@ pub struct SearchRequest {
filter: SearchFilter,
page: u64,
page_size: u64,
sort_by: String
}
impl SearchRequest {
pub fn validate(&self) -> BichonResult<()> {
@@ -85,6 +86,7 @@ pub async fn search_messages_impl(
request.page,
request.page_size,
true,
request.sort_by
)
.await
}