@esvndev/es-react-template-chat 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46037,7 +46037,8 @@ const initialState = {
|
|
|
46037
46037
|
};
|
|
46038
46038
|
const get_history = toolkit.createAsyncThunk(CHAT.ACTION_TYPES.GET_HISTORY, async (params, thunkAPI) => {
|
|
46039
46039
|
try {
|
|
46040
|
-
return await api.chatApi.getHistory(params)
|
|
46040
|
+
//return await api.chatApi.getHistory(params)
|
|
46041
|
+
return await [];
|
|
46041
46042
|
}
|
|
46042
46043
|
catch (error) {
|
|
46043
46044
|
return thunkAPI.rejectWithValue({ error: error.response.data });
|
|
@@ -46601,7 +46602,6 @@ appChatSlice.actions;
|
|
|
46601
46602
|
const useChat = () => {
|
|
46602
46603
|
const dispatch = configureStore.useAppDispatch();
|
|
46603
46604
|
const { active, checkInit, chatRoomId, userLogin, listContact, contactId, typeChat, loadChat, messageByGroup, listHistory, listChatType, archiveStore, checkScroll, listGeneralGroup, pinnedMessages, typingUsers } = configureStore.useAppSelector((state) => state.chat);
|
|
46604
|
-
console.log('active', active);
|
|
46605
46605
|
const getHistoryApi = (params) => {
|
|
46606
46606
|
return dispatch(get_history(params));
|
|
46607
46607
|
};
|