searchMessagesByUser

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

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

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

Since

5.0.0

Parameters

conversationType

The type of the specified conversation.

targetId

The ID of the specified conversation.

userId

The user ID.

count

The number of search results to return (0 < count <= 100). If count > 100, only 100 results will be returned.

beginTime

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

resultCallback

Callback for the search results.