Chatwoot/app/javascript/widget/store/modules/conversation/index.js
2021-08-13 15:28:53 +05:30

44 lines
736 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,
},
activeConversationId: undefined
}; */
const state = {
conversations: {},
meta: {
userLastSeenAt: undefined,
},
uiFlags: {
allMessagesLoaded: false,
isFetchingList: false,
isAgentTyping: false,
isCreating: false,
},
};
export default {
namespaced: true,
state,
getters,
actions,
mutations,
};