From 8725b2c23096b5943bda215966bc502af662735b Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Mon, 12 Sep 2022 22:53:30 -0400 Subject: [PATCH] Unpersist widget after hanging up Otherwise it can get stuck on screen in Element Web. --- src/room/GroupCallView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/room/GroupCallView.tsx b/src/room/GroupCallView.tsx index 4098d0d..c8ddf96 100644 --- a/src/room/GroupCallView.tsx +++ b/src/room/GroupCallView.tsx @@ -150,6 +150,7 @@ export function GroupCallView({ const onHangup = async (ev: CustomEvent) => { leave(); await widget.api.transport.reply(ev.detail, {}); + widget.api.setAlwaysOnScreen(false); }; widget.lazyActions.once(ElementWidgetActions.HangupCall, onHangup); return () => {