Unpersist widget after hanging up
Otherwise it can get stuck on screen in Element Web.
This commit is contained in:
parent
3bffe58549
commit
8725b2c230
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ export function GroupCallView({
|
||||||
const onHangup = async (ev: CustomEvent<IWidgetApiRequest>) => {
|
const onHangup = async (ev: CustomEvent<IWidgetApiRequest>) => {
|
||||||
leave();
|
leave();
|
||||||
await widget.api.transport.reply(ev.detail, {});
|
await widget.api.transport.reply(ev.detail, {});
|
||||||
|
widget.api.setAlwaysOnScreen(false);
|
||||||
};
|
};
|
||||||
widget.lazyActions.once(ElementWidgetActions.HangupCall, onHangup);
|
widget.lazyActions.once(ElementWidgetActions.HangupCall, onHangup);
|
||||||
return () => {
|
return () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue