From 47a4c5aa886a2d305ff62b9add97144a49950d92 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Wed, 7 Jun 2023 14:19:53 -0400 Subject: [PATCH] Don't show the quality survey if the app is a widget As explained by the comment, we don't yet have designs that account for this combo. --- src/room/GroupCallView.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/room/GroupCallView.tsx b/src/room/GroupCallView.tsx index 595bc3f..b0c93b7 100644 --- a/src/room/GroupCallView.tsx +++ b/src/room/GroupCallView.tsx @@ -272,7 +272,16 @@ export function GroupCallView({ ); } } else if (left) { - if (isPasswordlessUser || PosthogAnalytics.instance.isEnabled()) { + // The call ended view is shown for two reasons: prompting guests to create + // an account, and prompting users that have opted into analytics to provide + // feedback. We don't show a feedback prompt to widget users however (at + // least for now), because we don't yet have designs that would allow widget + // users to dismiss the feedback prompt and close the call window without + // submitting anything. + if ( + isPasswordlessUser || + (PosthogAnalytics.instance.isEnabled() && !isEmbedded) + ) { return (