feat: Update bot typing indicator based on the conversation status (#7714)

- Show the indicator if the last message is incoming and the conversation is in pending status.
- Remove list of articles displayed in the bot response.
This commit is contained in:
Pranav Raj S
2023-08-11 16:41:01 -07:00
committed by GitHub
parent cfe86d9c06
commit 6f09f20991
4 changed files with 23 additions and 5 deletions

View File

@@ -16,6 +16,13 @@ export const getters = {
}
return {};
},
getLastMessage: _state => {
const conversation = Object.values(_state.conversations);
if (conversation.length) {
return conversation[conversation.length - 1];
}
return {};
},
getGroupedConversation: _state => {
const conversationGroupedByDate = groupBy(
Object.values(_state.conversations),