diff --git a/apps/web/src/features/chat/components/CallButton.tsx b/apps/web/src/features/chat/components/CallButton.tsx index 9d13e0403..887156dc0 100644 --- a/apps/web/src/features/chat/components/CallButton.tsx +++ b/apps/web/src/features/chat/components/CallButton.tsx @@ -8,6 +8,13 @@ interface CallButtonProps { targetUserId: string; onCall: () => void; disabled?: boolean; + /** + * v1.0.9 item 1.2 — operator-configured TURN coverage status + * (forwarded from `useWebRTC().nat`). When false, the tooltip warns + * the user up-front that calls may fail behind symmetric NAT, instead + * of letting the connection time out silently. + */ + hasTurn?: boolean; } export function CallButton({ @@ -15,9 +22,13 @@ export function CallButton({ targetUserId: _targetUserId, onCall, disabled = false, + hasTurn, }: CallButtonProps) { + const tooltip = hasTurn + ? 'Démarrer un appel' + : 'Fonctionne mieux sur le même réseau local (TURN non configuré)'; return ( - +