Feature: Customise widget for bot conversations (#834)

* Feature: Customise widget for bot conversations
This commit is contained in:
Pranav Raj S
2020-05-09 22:02:43 +05:30
committed by GitHub
parent 05ea6308f2
commit f28ec29b8c
24 changed files with 298 additions and 26 deletions

View File

@@ -2,7 +2,7 @@
import Vue from 'vue';
import {
sendMessageAPI,
getConversationAPI,
getMessagesAPI,
sendAttachmentAPI,
toggleTyping,
} from 'widget/api/conversation';
@@ -116,7 +116,7 @@ export const actions = {
fetchOldConversations: async ({ commit }, { before } = {}) => {
try {
commit('setConversationListLoading', true);
const { data } = await getConversationAPI({ before });
const { data } = await getMessagesAPI({ before });
commit('setMessagesInConversation', data);
commit('setConversationListLoading', false);
} catch (error) {