Unpersist widget after hanging up

Otherwise it can get stuck on screen in Element Web.
This commit is contained in:
Robin Townsend 2022-09-12 22:53:30 -04:00
parent 3bffe58549
commit 8725b2c230

View file

@ -150,6 +150,7 @@ export function GroupCallView({
const onHangup = async (ev: CustomEvent<IWidgetApiRequest>) => {
leave();
await widget.api.transport.reply(ev.detail, {});
widget.api.setAlwaysOnScreen(false);
};
widget.lazyActions.once(ElementWidgetActions.HangupCall, onHangup);
return () => {