again link open - end call issue
This commit is contained in:
@@ -1644,7 +1644,7 @@
|
|||||||
}, 250);
|
}, 250);
|
||||||
}
|
}
|
||||||
|
|
||||||
function preventHostLeaveButtonExecution() {
|
function allowHostEndMeetingExecution() {
|
||||||
if (!isPoliticTalkHost()) {
|
if (!isPoliticTalkHost()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1658,12 +1658,17 @@
|
|||||||
buttons = buttons.filter(function(button) {
|
buttons = buttons.filter(function(button) {
|
||||||
var key = typeof button === 'string' ? button : button && button.key;
|
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 = window.config || {};
|
||||||
window.config.buttonsWithNotifyClick = buttons;
|
if (buttons.length > 0) {
|
||||||
|
window.config.buttonsWithNotifyClick = buttons;
|
||||||
|
} else {
|
||||||
|
delete window.config.buttonsWithNotifyClick;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function isLeaveMeetingControl(element) {
|
function isLeaveMeetingControl(element) {
|
||||||
@@ -1702,7 +1707,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
document.documentElement.classList.add('politictalk-host-user');
|
document.documentElement.classList.add('politictalk-host-user');
|
||||||
preventHostLeaveButtonExecution();
|
allowHostEndMeetingExecution();
|
||||||
hideHostLeaveMeetingControls();
|
hideHostLeaveMeetingControls();
|
||||||
|
|
||||||
if (window.politicTalkHostHangupObserver) {
|
if (window.politicTalkHostHangupObserver) {
|
||||||
@@ -3089,7 +3094,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
applyPoliticTalkMeetingTitle();
|
applyPoliticTalkMeetingTitle();
|
||||||
preventHostLeaveButtonExecution();
|
allowHostEndMeetingExecution();
|
||||||
|
|
||||||
if (document.readyState === 'loading') {
|
if (document.readyState === 'loading') {
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user