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.

Mirrorfly.searchConversation(searchKey: SEARCH_TERM, jidForSearch: JID, globalSearch: GLOBAL_SEARCH, flyCallBack: (FlyResponse response) {
if(response.isSuccess && response.hasData){
List<ChatMessageModel> chatMessageModel = chatMessageModelFromJson(response.data);
}
});
ArgumentTypeDescriptionType
SEARCH_TERMStringtext characters for which search has to happen
JIDStringUnique identifier of a contact/Group (can be empty for global search)
GLOBAL_SEARCHboolif true then search won't be restricted by jid and search operation executes on every conversation. default value true
flyCallbackFlyResponsecallback to observe the action status