mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 06:46:32 +03:00
jsonrpc API: Fix documentation of search_messages() (#4288)
This commit is contained in:
@@ -1082,17 +1082,17 @@ impl CommandApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Search messages containing the given query string.
|
/// Search messages containing the given query string.
|
||||||
/// Searching can be done globally (chat_id=0) or in a specified chat only (chat_id set).
|
/// Searching can be done globally (chat_id=None) or in a specified chat only (chat_id set).
|
||||||
///
|
///
|
||||||
/// Global chat results are typically displayed using dc_msg_get_summary(), chat
|
/// Global search results are typically displayed using dc_msg_get_summary(), chat
|
||||||
/// search results may just hilite the corresponding messages and present a
|
/// search results may just highlight the corresponding messages and present a
|
||||||
/// prev/next button.
|
/// prev/next button.
|
||||||
///
|
///
|
||||||
/// For global search, result is limited to 1000 messages,
|
/// For the global search, the result is limited to 1000 messages,
|
||||||
/// this allows incremental search done fast.
|
/// this allows an incremental search done fast.
|
||||||
/// So, when getting exactly 1000 results, the result may be truncated;
|
/// So, when getting exactly 1000 messages, the result actually may be truncated;
|
||||||
/// the UIs may display sth. as "1000+ messages found" in this case.
|
/// the UIs may display sth. like "1000+ messages found" in this case.
|
||||||
/// Chat search (if a chat_id is set) is not limited.
|
/// The chat search (if chat_id is set) is not limited.
|
||||||
async fn search_messages(
|
async fn search_messages(
|
||||||
&self,
|
&self,
|
||||||
account_id: u32,
|
account_id: u32,
|
||||||
|
|||||||
Reference in New Issue
Block a user