:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix: person compose issue (#58856)
Alex V805fcade9cd7
diff --git a/products/conversations/backend/api/tickets.py b/products/conversations/backend/api/tickets.pyindex 95dfbb857588..d00bb620307c 100644--- a/products/conversations/backend/api/tickets.py+++ b/products/conversations/backend/api/tickets.py@@ -930,8 +930,11 @@ class TicketViewSet(TaggedItemViewSetMixin, TeamAndOrgViewSetMixin, viewsets.Modrecipient_email = data["recipient_email"]distinct_id = data.get("recipient_distinct_id", "") or recipient_email- person = get_person_by_distinct_id(team.id, distinct_id)- if person is None and distinct_id == recipient_email:+ person: Person | None = None+ if distinct_id != recipient_email:+ person = get_person_by_distinct_id(team.id, distinct_id)++ if person is None:person = _get_persons_by_email(team, [recipient_email]).get(recipient_email.lower())if person is not None and person.distinct_ids:distinct_id = person.distinct_ids[0]