[mirotalksfu] - fix widget buttons order

هذا الالتزام موجود في:
Miroslav Pejic
2025-08-09 11:47:48 +02:00
الأصل 5bb63b1667
التزام 165dd57fa6

عرض الملف

@@ -226,7 +226,6 @@ class MiroTalkWidget {
const buttons = [
{ action: 'startAudioCall', icon: this.getAudioIcon(), text: 'Start Audio Call' },
{ action: 'startVideoCall', icon: this.getVideoIcon(), text: 'Start Video Call' },
{ action: 'joinRoom', icon: this.getJoinIcon(), text: 'Join Room' },
];
// Only show "Start Screen Share" if displayMedia is supported
@@ -234,6 +233,9 @@ class MiroTalkWidget {
buttons.push({ action: 'startScreenShare', icon: this.getScreenIcon(), text: 'Start Screen Share' });
}
// Insert "Start Screen Share" before "Join Room" if present
buttons.push({ action: 'joinRoom', icon: this.getJoinIcon(), text: 'Join Room' });
return buttons
.map(
(btn) => `