2021-01-17 17:14:03 +00:00
|
|
|
import { getters } from './getters';
|
|
|
|
import { actions } from './actions';
|
|
|
|
import { mutations } from './mutations';
|
|
|
|
|
2021-09-17 15:28:21 +00:00
|
|
|
/* const state = {
|
|
|
|
conversations: {
|
|
|
|
byId: {},
|
|
|
|
allIds: [],
|
|
|
|
},
|
|
|
|
messages: {
|
|
|
|
byId: {},
|
|
|
|
allIds: [],
|
|
|
|
},
|
|
|
|
meta: {
|
|
|
|
byId: {
|
|
|
|
// 1: { allMessagesLoaded: false, isAgentTyping: false, isCreating: false },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
uiFlags: {
|
|
|
|
isFetchingList: false,
|
|
|
|
},
|
|
|
|
activeConversationId: undefined
|
|
|
|
}; */
|
|
|
|
|
2021-01-17 17:14:03 +00:00
|
|
|
const state = {
|
|
|
|
conversations: {},
|
|
|
|
meta: {
|
|
|
|
userLastSeenAt: undefined,
|
|
|
|
},
|
|
|
|
uiFlags: {
|
|
|
|
allMessagesLoaded: false,
|
|
|
|
isFetchingList: false,
|
|
|
|
isAgentTyping: false,
|
2021-02-15 18:44:13 +00:00
|
|
|
isCreating: false,
|
2021-01-17 17:14:03 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
namespaced: true,
|
|
|
|
state,
|
|
|
|
getters,
|
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
};
|