searchMessagesByUser

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

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

Note: To make custom messages searchable, the getSearchableWord method must be implemented in the custom message. For ultra group conversations, only messages stored locally can be searched.

Since

5.1.1

Parameters

conversationType

The specified conversation type.

targetId

The specified conversation ID.

channelId

The business identifier of the conversation to which the message belongs.

userId

The user ID.

count

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

beginTime

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

resultCallback

Callback for search results.