[Enhancement] Group widget messages by date (#363)

* [Enhancement] Group widget messages by date

* Update DateSeparator snapshot
This commit is contained in:
Pranav Raj S 2019-12-15 00:06:01 +05:30 committed by Sojan Jose
parent 7b63cbe1f7
commit cfc56705fd
11 changed files with 193 additions and 13 deletions

View file

@ -4,7 +4,7 @@
<ChatHeaderExpanded v-if="isHeaderExpanded" />
<ChatHeader v-else :title="getHeaderName" />
</div>
<ConversationWrap :messages="getConversation" />
<ConversationWrap :grouped-messages="groupedMessages" />
<div class="footer-wrap">
<ChatFooter :on-send-message="handleSendMessage" />
</div>
@ -36,9 +36,12 @@ export default {
},
},
computed: {
...mapGetters('conversation', ['getConversation', 'getConversationSize']),
...mapGetters({
groupedMessages: 'conversation/getGroupedConversation',
conversationSize: 'conversation/getConversationSize',
}),
isHeaderExpanded() {
return this.getConversationSize === 0;
return this.conversationSize === 0;
},
getHeaderName() {
return window.chatwootWebChannel.website_name;