From 5d55c19bb566795465b5f7fb12c73a0c7c1d06b3 Mon Sep 17 00:00:00 2001 From: gustrb Date: Tue, 15 Oct 2024 18:05:01 -0300 Subject: [PATCH] chore: improve docs --- apps/meteor/app/livechat/server/lib/QueueManager.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/meteor/app/livechat/server/lib/QueueManager.ts b/apps/meteor/app/livechat/server/lib/QueueManager.ts index 61ae4af4111bf..2c1534bef3b63 100644 --- a/apps/meteor/app/livechat/server/lib/QueueManager.ts +++ b/apps/meteor/app/livechat/server/lib/QueueManager.ts @@ -258,9 +258,12 @@ export class QueueManager { } let newRoom; + // Note: if the contact is not verified, we cannot add it to the queue, since no agent should be able to pick the conversation + // up. So if the contact is not verified we don't add it to queue and wait an event to be sent to properly add it to queue if (await Omnichannel.isUnverifiedContact(room)) { newRoom = await LivechatRooms.findOneById(rid); await unverifyContactChannel(inquiry.v.contactId, room.source.type, inquiry.v._id); + // void Apps.self?.triggerEvent(AppEvents.IPostContactVerificationAppAssigned, inquiry.v, room); } else { newRoom = (await this.queueInquiry(inquiry, room, defaultAgent)) ?? (await LivechatRooms.findOneById(rid)); }