How to receive the historical messages from a conversation?
BeantwortetNow I get a conversation by follow code:
getConversationByID(id) {
return this.nodeSDK.conversations.getConversationById(id);
};
Then, I get the data as follows:
messages: [],
participantStatuses: {},
draft: '',
uploadFile: null,
status: { key: 0, value: 'active' },
historyIndex: -1,
historyMessages: [],
I can't get historical messages from this data structure.Do I need to use other ways to get this data?
-
Hi Hugh Han,
Did you create the Bubble with "withHistory" flag to true ?
If yes, you can't access to the history.cf https://hub.openrainbow.com/#/documentation/doc/sdk/node/api/bubbles#Bubbles+createBubble
Best regards,
Pascal
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
6 Kommentare