Merge pull request #576 from robintown/unpersist

Unpersist widget after hanging up
This commit is contained in:
Robin 2022-09-13 08:34:41 -04:00 committed by GitHub
commit 73d09bc99c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 () => {