[mirotalk] - fix: replace stateless whiteboard 'toggle' with explicit 'open'/'close' actions to prevent desync between participants
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
# ====================================================
|
||||
# MiroTalk P2P v.1.8.20 - Environment Configuration
|
||||
# MiroTalk P2P v.1.8.21 - Environment Configuration
|
||||
# ====================================================
|
||||
|
||||
# App environment
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* ==============================================
|
||||
* MiroTalk P2P v.1.8.20 - Configuration File
|
||||
* MiroTalk P2P v.1.8.21 - Configuration File
|
||||
* ==============================================
|
||||
*
|
||||
* This file is the central configuration source.
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ dependencies: {
|
||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.8.20
|
||||
* @version 1.8.21
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "mirotalk",
|
||||
"version": "1.8.20",
|
||||
"version": "1.8.21",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "mirotalk",
|
||||
"version": "1.8.20",
|
||||
"version": "1.8.21",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"@mattermost/client": "11.6.0",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalk",
|
||||
"version": "1.8.20",
|
||||
"version": "1.8.21",
|
||||
"description": "A free WebRTC browser-based video call",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
|
||||
+1
-1
@@ -109,7 +109,7 @@ let brand = {
|
||||
},
|
||||
about: {
|
||||
imageUrl: '../images/mirotalk-logo.gif',
|
||||
title: 'WebRTC P2P v1.8.20',
|
||||
title: 'WebRTC P2P v1.8.21',
|
||||
html: `
|
||||
<button
|
||||
id="support-button"
|
||||
|
||||
+11
-4
@@ -15,7 +15,7 @@
|
||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.8.20
|
||||
* @version 1.8.21
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -13453,10 +13453,11 @@ function handleUnlockTheRoom() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle whiteboard toogle
|
||||
* Handle whiteboard toggle
|
||||
*/
|
||||
function handleWhiteboardToggle() {
|
||||
thereArePeerConnections() ? whiteboardAction(getWhiteboardAction('toggle')) : toggleWhiteboard();
|
||||
const action = wbIsOpen ? 'close' : 'open';
|
||||
thereArePeerConnections() ? whiteboardAction(getWhiteboardAction(action)) : toggleWhiteboard();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -14501,6 +14502,12 @@ function handleWhiteboardAction(config, logMe = true) {
|
||||
wbCanvasClear();
|
||||
removeCanvasGrid();
|
||||
break;
|
||||
case 'open':
|
||||
if (!wbIsOpen) toggleWhiteboard();
|
||||
break;
|
||||
case 'close':
|
||||
if (wbIsOpen) toggleWhiteboard();
|
||||
break;
|
||||
case 'toggle':
|
||||
toggleWhiteboard();
|
||||
break;
|
||||
@@ -15564,7 +15571,7 @@ function showAbout() {
|
||||
Swal.fire({
|
||||
background: swBg,
|
||||
position: 'center',
|
||||
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.8.20',
|
||||
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.8.21',
|
||||
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
|
||||
customClass: { image: 'img-about' },
|
||||
html: `
|
||||
|
||||
Reference in New Issue
Block a user