search Messages By User For Channels
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
conversation Type
Specifies the conversation type.
target Id
Specifies the conversation ID.
channel Ids
The business identifier of the conversation to which the messages belong. (0
user Id
The user ID.
start Time
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.
result Callback
Callback for search results.