searchMessagesByUser

public abstract void searchMessagesByUser(ConversationType conversationType, String targetId, String userId, int count, long beginTime, RongIMClient.ResultCallback<List<Message>> resultCallback)

Searches for messages in a specified conversation based on the user ID.

Note: To make custom messages searchable, implement the getSearchableWord method in your custom message class.

Parameters

conversationType

The specified conversation type.

targetId

The specified conversation ID.

userId

The user ID.

count

The number of search results to return 0 < count <= 100 . If count > 100, it returns 100.

beginTime

The start time for the query. Pass 0 to search from the latest message, searching backward from this time.

resultCallback

The callback for search results.