2019-08-31 04:07:25 +05:00
|
|
|
import ActionTypes from '../constants/ActionTypes';
|
|
|
|
|
2021-06-24 01:05:22 +05:00
|
|
|
export const handleSocketDisconnect = () => ({
|
|
|
|
type: ActionTypes.SOCKET_DISCONNECT_HANDLE,
|
|
|
|
payload: {},
|
|
|
|
});
|
2019-08-31 04:07:25 +05:00
|
|
|
|
2021-06-24 01:05:22 +05:00
|
|
|
export const handleSocketReconnect = (
|
|
|
|
user,
|
|
|
|
board,
|
|
|
|
users,
|
|
|
|
projects,
|
|
|
|
projectManagers,
|
|
|
|
boards,
|
|
|
|
boardMemberships,
|
|
|
|
labels,
|
|
|
|
lists,
|
|
|
|
cards,
|
|
|
|
cardMemberships,
|
|
|
|
cardLabels,
|
|
|
|
tasks,
|
|
|
|
attachments,
|
|
|
|
actions,
|
|
|
|
notifications,
|
|
|
|
) => ({
|
|
|
|
type: ActionTypes.SOCKET_RECONNECT_HANDLE,
|
2019-08-31 04:07:25 +05:00
|
|
|
payload: {
|
2021-06-24 01:05:22 +05:00
|
|
|
user,
|
|
|
|
board,
|
|
|
|
users,
|
|
|
|
projects,
|
|
|
|
projectManagers,
|
|
|
|
boards,
|
|
|
|
boardMemberships,
|
|
|
|
labels,
|
|
|
|
lists,
|
|
|
|
cards,
|
|
|
|
cardMemberships,
|
|
|
|
cardLabels,
|
|
|
|
tasks,
|
|
|
|
attachments,
|
|
|
|
actions,
|
|
|
|
notifications,
|
2019-08-31 04:07:25 +05:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2021-06-24 01:05:22 +05:00
|
|
|
handleSocketReconnect.fetchCore = (currentUserId, currentBoardId) => ({
|
|
|
|
type: ActionTypes.SOCKET_RECONNECT_HANDLE__CORE_FETCH,
|
2019-08-31 04:07:25 +05:00
|
|
|
payload: {
|
2021-06-24 01:05:22 +05:00
|
|
|
currentUserId,
|
|
|
|
currentBoardId,
|
2019-08-31 04:07:25 +05:00
|
|
|
},
|
|
|
|
});
|