Search Chat Conversation
To find a message or similar messages that matches a search term within a chat conversation between two or in a group or among all conversations call the method below.
- Java
- Kotlin
Argument | Type | Description | Type |
---|---|---|---|
SEARCH_TERM | String | text characters for which search has to happen | |
JID | String | Unique identifier of a contact/Group (can be empty for global search) | |
GLOBAL_SEARCH | boolean | if true then search won't be restricted by jid and search operation executes on every conversation | |
CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
caution
Search term can't be empty, for global search pass a empty String as argument for JID.