@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.mjs
CHANGED
|
@@ -46000,7 +46000,8 @@ const initialState = {
|
|
|
46000
46000
|
};
|
|
46001
46001
|
const get_history = createAsyncThunk(CHAT.ACTION_TYPES.GET_HISTORY, async (params, thunkAPI) => {
|
|
46002
46002
|
try {
|
|
46003
|
-
return await api.chatApi.getHistory(params)
|
|
46003
|
+
//return await api.chatApi.getHistory(params)
|
|
46004
|
+
return await [];
|
|
46004
46005
|
}
|
|
46005
46006
|
catch (error) {
|
|
46006
46007
|
return thunkAPI.rejectWithValue({ error: error.response.data });
|
|
@@ -46564,7 +46565,6 @@ appChatSlice.actions;
|
|
|
46564
46565
|
const useChat = () => {
|
|
46565
46566
|
const dispatch = useAppDispatch();
|
|
46566
46567
|
const { active, checkInit, chatRoomId, userLogin, listContact, contactId, typeChat, loadChat, messageByGroup, listHistory, listChatType, archiveStore, checkScroll, listGeneralGroup, pinnedMessages, typingUsers } = useAppSelector((state) => state.chat);
|
|
46567
|
-
console.log('active', active);
|
|
46568
46568
|
const getHistoryApi = (params) => {
|
|
46569
46569
|
return dispatch(get_history(params));
|
|
46570
46570
|
};
|