search Messages By User For All Channel
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
conversation Type
The specified conversation type.
target Id
The specified conversation ID.
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 this time.
limit
The number of search results to return 0 < limit <= 100
. If limit
> 100
, it will return 100.
result Callback
The callback for search results.