diff --git a/web/plugin.head.html b/web/plugin.head.html
index 45c99f0..9464eb0 100644
--- a/web/plugin.head.html
+++ b/web/plugin.head.html
@@ -1644,7 +1644,7 @@
}, 250);
}
- function preventHostLeaveButtonExecution() {
+ function allowHostEndMeetingExecution() {
if (!isPoliticTalkHost()) {
return;
}
@@ -1658,12 +1658,17 @@
buttons = buttons.filter(function(button) {
var key = typeof button === 'string' ? button : button && button.key;
- return key !== 'hangup';
+ return key !== 'hangup'
+ && key !== 'hangup-menu'
+ && key !== 'end-meeting';
});
- buttons.push('hangup');
window.config = window.config || {};
- window.config.buttonsWithNotifyClick = buttons;
+ if (buttons.length > 0) {
+ window.config.buttonsWithNotifyClick = buttons;
+ } else {
+ delete window.config.buttonsWithNotifyClick;
+ }
}
function isLeaveMeetingControl(element) {
@@ -1702,7 +1707,7 @@
}
document.documentElement.classList.add('politictalk-host-user');
- preventHostLeaveButtonExecution();
+ allowHostEndMeetingExecution();
hideHostLeaveMeetingControls();
if (window.politicTalkHostHangupObserver) {
@@ -3089,7 +3094,7 @@
}
applyPoliticTalkMeetingTitle();
- preventHostLeaveButtonExecution();
+ allowHostEndMeetingExecution();
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', function() {