Chatwoot/app/javascript/widget/store/modules/conversation/index.js
2021-08-12 17:23:13 +05:30

30 lines
485 B
JavaScript
Executable file

import { getters } from './getters';
import { actions } from './actions';
import { mutations } from './mutations';
const state = {
conversations: {
byId: {},
allIds: [],
},
messages: {
byId: {},
allIds: [],
},
meta: {
byId: {
// 1: { allMessagesLoaded: false, isAgentTyping: false, isCreating: false },
},
},
uiFlags: {
isFetchingList: false,
},
};
export default {
namespaced: true,
state,
getters,
actions,
mutations,
};