Skip to content

Commit

Permalink
chore: improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustrb committed Oct 15, 2024
1 parent 11d9321 commit 5d55c19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/meteor/app/livechat/server/lib/QueueManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 5d55c19

Please sign in to comment.