getMessagesAfter(accountId:chatId:afterId:)

Load messages newer than a reference message

func getMessagesAfter(accountId: String, chatId: String, afterId: ChatMessage?) async -> Array<ChatMessage>

Parameters

accountId

the account to load messages for

chatId

Chat to query

afterId

return messages newer than this message, or start from the oldest when null

Return Value

Promise resolving to newer messages