feature/IO-3000-messaging-sockets-migrations2 -

- dumb down archive/unarchive

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-11-21 19:17:42 -08:00
parent 38f13346e5
commit 525f795ce0
2 changed files with 11 additions and 76 deletions

View File

@@ -34,6 +34,7 @@ export function* onOpenChatByPhone() {
export function* openChatByPhone({ payload }) {
logImEXEvent("messaging_open_by_phone");
const { socket, phone_num, jobid } = payload;
if (!socket || !phone_num) return;
const p = parsePhoneNumber(phone_num, "CA");
const bodyshop = yield select(selectBodyshop);
@@ -67,7 +68,7 @@ export function* openChatByPhone({ payload }) {
const createdConversation = newConversations[0]; // Get the newly created conversation
// Emit event for new conversation with full details
// // Emit event for new conversation with full details
if (socket) {
socket.emit("conversation-modified", {
bodyshopId: bodyshop.id,