search Messages By User
public abstract void searchMessagesByUser(ConversationType conversationType, String targetId, String userId, int count, long beginTime, IRongCoreCallback.ResultCallback<List<Message>> resultCallback)
Searches for messages in a specified conversation based on the user ID.
Note: To ensure custom messages are searchable, implement the getSearchableWord method in your custom message class.
Since
5.0.0
Parameters
conversation Type
The type of the specified conversation.
target Id
The ID of the specified conversation.
user Id
The user ID.
count
The number of search results to return (0 < count <= 100
). If
count > 100
, only 100 results will be returned.
begin Time
The start time for the search query. Pass 0 to start searching from the latest message and search backward from that time.
result Callback
Callback for the search results.