search Messages By User
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
conversation Type
The specified conversation type.
target Id
The specified conversation ID.
user Id
The user ID.
count
The number of search results to return 0 < count <= 100
. If
count > 100
, it returns 100.
begin Time
The start time for the query. Pass 0 to search from the latest message, searching backward from this time.
result Callback
The callback for search results.