feature/IO-3000-messaging-sockets-migrations2 -
- dumb down archive/unarchive Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user