searchMessagesByUserForAllChannel

public abstract void searchMessagesByUserForAllChannel(ConversationType conversationType, String targetId, String userId, long startTime, int limit, IRongCoreCallback.ResultCallback<List<Message>> resultCallback)

Search for messages in a specified conversation based on conversation ID, user ID, etc. (Includes all Channel IDs)

Note: To ensure that custom messages can also be searched, implement the getSearchableWord method in your custom message.

Since

5.6.2

Parameters

conversationType

The specified conversation type.

targetId

The specified conversation ID.

userId

The user ID.

startTime

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

limit

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

resultCallback

The callback for search results.