From e641b35dee9dd6b42450b737ab6cf40f15818e39 Mon Sep 17 00:00:00 2001 From: errorbyme Date: Mon, 8 Jun 2026 17:11:45 +0530 Subject: [PATCH] again link open - end call issue --- web/plugin.head.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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() {