search Conversation
open fun searchConversation(@NonNull context: Context, @NonNull searchKey: String): List<ThreadItem>
Content copied to clipboard
Call this method to search for conversation contains the given searchKey (search in message text contains the given searchKey).
The search process is done in :
- body text
- participants name
- conversation name
- extra attachment data
If the searchKey is empty or null, all conversations will be returned.
This method should be executed in a worker thread since it contains a lot of operation that can exceed 5sec or block the UI thread.
Return
Conversation list or null
See also
Parameters
context
The application context
search Key
A search keyword