V2TimMessageSearchResultItem

Introduction

The single item of the message search result.

Parameter introduction

conversationID

  • Parameter type : string
  • Parameter description : The conversation ID

messageCount

  • Parameter type : number
  • Parameter description : Total number of eligible messages found in the current conversation.

messageList

  • Parameter type : V2TimMessage[]
  • Parameter description : List of eligible messages.

If you search a specified conversation, messageList contains the list of all the eligible messages in the current conversation.

If you search all conversations, there are two possibilities for the number of messages contained in messageList:

  1. If more than 1 eligible message is found in a conversation, messageList is empty, and the notification message "messageCount related messages" can be displayed on the UI.

  2. If 1 eligible message is found in a conversation, messageList contains the eligible message, and the message is displayed with the matching keywords highlighted on the UI.

results matching ""

    No results matching ""