feat: add attachment search view

This commit is contained in:
rustmailer
2026-04-19 01:01:46 +08:00
parent 19b5168960
commit 7dd722f9b8
96 changed files with 36331 additions and 28970 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ use crate::modules::{
account::migration::AccountModel,
error::BichonResult,
rest::response::DataPage,
store::{envelope::Envelope, tantivy::manager::INDEX_MANAGER},
store::{envelope::Envelope, tantivy::envelope::ENVELOPE_MANAGER},
};
pub async fn get_thread_messages(
@@ -30,7 +30,7 @@ pub async fn get_thread_messages(
page_size: u64,
) -> BichonResult<DataPage<Envelope>> {
AccountModel::check_account_exists(account_id).await?;
INDEX_MANAGER
ENVELOPE_MANAGER
.list_thread_envelopes(account_id, thread_id, page, page_size, true)
.await
}