PreviousMessageListQuery

PreviousMessageListQuery

Query class to get previous messages. Initialize this class with groupChannel.createPreviousMessageListQuery() and openChannel.createPreviousMessageListQuery()

Members

(nullable) customTypeFilter :string

Deprecated:
  • since version v3.0.142, please use customTypesFilter instead
Default Value:
  • null
Type:
  • string

(nullable) customTypesFilter :Array.<string>

Default Value:
  • []
Type:
  • Array.<string>

hasMore :boolean

Type:
  • boolean

includeMetaArray :boolean

Default Value:
  • false
Type:
  • boolean

includeParentMessageText :boolean

Default Value:
  • false
Type:
  • boolean

includeReaction :boolean

Deprecated:
  • since version v3.0.129, please use includeReactions instead
Default Value:
  • null
Type:
  • boolean

includeReactions :boolean

Default Value:
  • false
Type:
  • boolean

includeReplies :boolean

Default Value:
  • false
Type:
  • boolean

includeThreadInfo :boolean

Default Value:
  • false
Type:
  • boolean

isLoading :boolean

Type:
  • boolean

limit :number

Default Value:
  • 20
Type:
  • number

messageTypeFilter :number|string

Default Value:
  • null Use 0 for ALL, 1 for USER, 2 for FILE, 3 for ADMIN
See:
Type:
  • number | string

reverse :boolean

Default Value:
  • false
Type:
  • boolean

senderUserIdsFilter :Array.<string>

Default Value:
  • []
Type:
  • Array.<string>

showSubchannelMessagesOnly :boolean

Default Value:
  • false
Type:
  • boolean

Methods

load(limit, reverse, messageTypeFilter, callbackopt) → {Promise|undefined}

Execute the query

Parameters:
Name Type Attributes Description
limit number
reverse boolean
messageTypeFilter number
callback messageListCallback <optional>
Returns:
Type
Promise | undefined

load(limit, reverse, callbackopt) → {Promise|undefined}

Execute the query

Parameters:
Name Type Attributes Description
limit number
reverse boolean
callback messageListCallback <optional>
Returns:
Type
Promise | undefined

load(callbackopt) → {Promise|undefined}

Execute the query

Parameters:
Name Type Attributes Description
callback messageListCallback <optional>
Returns:
Type
Promise | undefined