mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-01 02:23:48 +00:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user