Fix hangup button handler
This commit is contained in:
parent
15a8ee6663
commit
c56368cdbb
1 changed files with 2 additions and 1 deletions
|
@ -116,8 +116,9 @@ let meetApi: any; // JitsiMeetExternalAPI
|
||||||
|
|
||||||
// TODO: register widgetApi listeners for PTT controls (https://github.com/vector-im/riot-web/issues/12795)
|
// TODO: register widgetApi listeners for PTT controls (https://github.com/vector-im/riot-web/issues/12795)
|
||||||
|
|
||||||
widgetApi.on('hangup', () => {
|
widgetApi.addEventListener('hangup', (ev: CustomEvent<IWidgetApiRequest>) => {
|
||||||
if (meetApi) meetApi.executeCommand('hangup');
|
if (meetApi) meetApi.executeCommand('hangup');
|
||||||
|
widgetApi.transport.reply(ev.detail, {}); // ack
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
enableJoinButton();
|
enableJoinButton();
|
||||||
|
|
Loading…
Add table
Reference in a new issue