|
|
|
@ -411,7 +411,7 @@ export const useConversationStore = create(
|
|
|
|
|
setInitial: (v) => set({ initialState: v }),
|
|
|
|
|
|
|
|
|
|
// side effects
|
|
|
|
|
fetchInitialData: async ({userIds, whatsAppBusiness, ...loginUser}) => {
|
|
|
|
|
fetchInitialData: async ({userId, userIds, whatsAppBusiness, ...loginUser}) => {
|
|
|
|
|
const { addToConversationList, setTemplates, setInitial, setClosedConversationList, setTags } = get();
|
|
|
|
|
|
|
|
|
|
// const conversationsList = await fetchConversationsList({ opisn: userIds });
|
|
|
|
@ -423,7 +423,7 @@ export const useConversationStore = create(
|
|
|
|
|
// const closedList = await fetchConversationsList({ opisn: userIds, session_enable: 0 });
|
|
|
|
|
// setClosedConversationList(closedList);
|
|
|
|
|
|
|
|
|
|
const myTags = await fetchTags({ opisn: userIds});
|
|
|
|
|
const myTags = await fetchTags({ opisn: userId});
|
|
|
|
|
setTags(myTags);
|
|
|
|
|
|
|
|
|
|
setInitial(true);
|
|
|
|
|