From 2d62027bfa685cd47ad037115322c56d64bafeea Mon Sep 17 00:00:00 2001 From: Timo K Date: Mon, 30 Oct 2023 17:18:36 +0100 Subject: [PATCH] update comment Signed-off-by: Timo K --- src/rtcSessionHelpers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rtcSessionHelpers.ts b/src/rtcSessionHelpers.ts index 3bff1d1d..8c3fe617 100644 --- a/src/rtcSessionHelpers.ts +++ b/src/rtcSessionHelpers.ts @@ -57,8 +57,9 @@ const widgetPostHangupProcedure = async ( widget.api.setAlwaysOnScreen(false); PosthogAnalytics.instance.logout(); - // we will always send the hangup event after the memberships have been updated + // We send the hangup event after the memberships have been updated // calling leaveRTCSession. + // We need to wait because this makes the client hosting this widget killing the IFrame. widget.api.transport.send(ElementWidgetActions.HangupCall, {}); };