feature/IO-3000-Migrate-MSG-to-Sockets - Progress Checkpoint
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -81,13 +81,13 @@ const useSocket = (bodyshop) => {
|
||||
dispatch({ type: "ADD_MESSAGE", payload: data.message });
|
||||
};
|
||||
|
||||
const handleReadUpdated = ({ conversationId }) => {
|
||||
dispatch({ type: "UPDATE_UNREAD_COUNT", payload: conversationId });
|
||||
};
|
||||
// const handleReadUpdated = ({ conversationId }) => {
|
||||
// dispatch({ type: "UPDATE_UNREAD_COUNT", payload: conversationId });
|
||||
// };
|
||||
|
||||
socketInstance.on("messaging-list", handleMessagingList);
|
||||
socketInstance.on("new-message", handleNewMessage);
|
||||
socketInstance.on("read-updated", handleReadUpdated);
|
||||
// socketInstance.on("mark-as-read", handleReadUpdated);
|
||||
socketInstance.on("connect", handleConnect);
|
||||
socketInstance.on("reconnect", handleReconnect);
|
||||
socketInstance.on("connect_error", handleConnectionError);
|
||||
|
||||
Reference in New Issue
Block a user