How to receive the historical messages from a conversation?
RéponduNow 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
Vous devez vous connecter pour laisser un commentaire.
Commentaires
6 commentaires