Skip to content

Commit fec6456

Browse files
[mirotalk] - fix: animate participants panel slide-in after chat pin and sync videoMediaContainer width transition
1 parent a91e7be commit fec6456

7 files changed

Lines changed: 45 additions & 33 deletions

File tree

.env.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ====================================================
2-
# MiroTalk P2P v.1.8.21 - Environment Configuration
2+
# MiroTalk P2P v.1.8.22 - Environment Configuration
33
# ====================================================
44

55
# App environment

app/src/config.template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* ==============================================
5-
* MiroTalk P2P v.1.8.21 - Configuration File
5+
* MiroTalk P2P v.1.8.22 - Configuration File
66
* ==============================================
77
*
88
* This file is the central configuration source.

app/src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencies: {
4545
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
4646
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
4747
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
48-
* @version 1.8.21
48+
* @version 1.8.22
4949
*
5050
*/
5151

package-lock.json

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mirotalk",
3-
"version": "1.8.21",
3+
"version": "1.8.22",
44
"description": "A free WebRTC browser-based video call",
55
"main": "server.js",
66
"scripts": {
@@ -46,7 +46,7 @@
4646
"dependencies": {
4747
"@mattermost/client": "11.6.0",
4848
"@ngrok/ngrok": "1.7.0",
49-
"@sentry/node": "^10.50.0",
49+
"@sentry/node": "^10.51.0",
5050
"axios": "^1.15.2",
5151
"chokidar": "^5.0.0",
5252
"colors": "^1.4.0",

public/js/brand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ let brand = {
109109
},
110110
about: {
111111
imageUrl: '../images/mirotalk-logo.gif',
112-
title: 'WebRTC P2P v1.8.21',
112+
title: 'WebRTC P2P v1.8.22',
113113
html: `
114114
<button
115115
id="support-button"

public/js/client.js

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
1616
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
1717
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
18-
* @version 1.8.21
18+
* @version 1.8.22
1919
*
2020
*/
2121

@@ -6464,24 +6464,36 @@ function setChatRoomBtn() {
64646464
function setParticipantsBtn() {
64656465
participantsBtn.addEventListener('click', async (e) => {
64666466
e.preventDefault();
6467-
if (!isChatRoomVisible) {
6468-
showChatRoomDraggable();
6469-
}
64706467

64716468
if (!isMobileDevice && canBePinned()) {
64726469
if (isCaptionPinned) {
64736470
userLog('toast', 'Please unpin the Caption that appears to be currently pinned');
64746471
return;
64756472
}
64766473

6474+
msgerDraggable.classList.add('msger-pinned-sidebar-open');
6475+
6476+
if (!isChatRoomVisible) {
6477+
showChatRoomDraggable();
6478+
}
6479+
64776480
if (!isChatPinned) {
64786481
chatPin();
64796482
}
64806483

6481-
openPinnedParticipantsSidebar(true);
6484+
// Wait for the panel-slide-in animation to play before overlaying the participants sidebar.
6485+
await sleep(500);
6486+
6487+
msgerCPBtn.classList.add('active');
6488+
searchPeerBarName?.focus();
6489+
screenReaderAccessibility.announceMessage('Participants list opened');
64826490
return;
64836491
}
64846492

6493+
if (!isChatRoomVisible) {
6494+
showChatRoomDraggable();
6495+
}
6496+
64856497
syncParticipantsPanelVisibility(true);
64866498
searchPeerBarName?.focus();
64876499
screenReaderAccessibility.announceMessage('Participants list opened');
@@ -15568,7 +15580,7 @@ function showAbout() {
1556815580
Swal.fire({
1556915581
background: swBg,
1557015582
position: 'center',
15571-
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.8.21',
15583+
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.8.22',
1557215584
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
1557315585
customClass: { image: 'img-about' },
1557415586
html: `

0 commit comments

Comments
 (0)