again link open - end call issue
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user