searchMessagesByUserForChannels

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

Searches for messages in a specified conversation based on conversation ID, business identifier, user ID, etc.

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

Since

5.6.2

Parameters

conversationType

Specifies the conversation type.

targetId

Specifies the conversation ID.

channelIds

The business identifier of the conversation to which the messages belong. (0 RC_INVALID_PARAMETER_CHANNEL_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 that time.

limit

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

resultCallback

Callback for search results.