decrease wait after call ended to 10ms (#825)
* decrease wait after call ended to 10ms * new order of widget requests to avoid pip flicker
This commit is contained in:
@@ -195,11 +195,11 @@ export function GroupCallView({
|
|||||||
|
|
||||||
leave();
|
leave();
|
||||||
if (widget) {
|
if (widget) {
|
||||||
// we need to wait until the callEnded event is tracked. Otherwise the iFrame gets killed before tracking the event.
|
// we need to wait until the callEnded event is tracked. Otherwise the iFrame gets killed before the callEnded event got tracked.
|
||||||
await new Promise((resolve) => window.setTimeout(resolve, 500)); // 500ms
|
await new Promise((resolve) => window.setTimeout(resolve, 10)); // 10ms
|
||||||
|
widget.api.setAlwaysOnScreen(false);
|
||||||
PosthogAnalytics.instance.logout();
|
PosthogAnalytics.instance.logout();
|
||||||
widget.api.transport.send(ElementWidgetActions.HangupCall, {});
|
widget.api.transport.send(ElementWidgetActions.HangupCall, {});
|
||||||
widget.api.setAlwaysOnScreen(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isPasswordlessUser && !isEmbedded) {
|
if (!isPasswordlessUser && !isEmbedded) {
|
||||||
|
|||||||
Reference in New Issue
Block a user