KamoCRM

Pin which support queue a stranger's chat lands in

TestMediaService
Shipped
6 செப்டம்பர், 2026 அன்று 12:38 AM UTC
Author
Kamo
Commit
a4f96d3

resolveTopic decides where a visitor from a customer's website reaches a person, and every way it can go wrong goes wrong silently — a chat filed under a plausible-looking queue nobody is watching, with no error anywhere. That is not something to leave on inspection. Six cases: the configured topic beats the title the widget sent; a deactivated or no-longer-resolving one falls through instead of collecting chats; an unconfigured integration keeps the old title match; no integration at all still reaches the first active topic; and an org with no topics still says so plainly. resolveTopic is package-private for this. Every Docstor but the topic repository is left null in the fixture on purpose — if the method ever reaches for one, that is a failing test rather than a quiet dependency. Mutation-checked: dropping the active filter fails exactly the deactivated case.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing