mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-08-31 06:02:09 +00:00
Fix indentation of jitsi widget wrapper
This commit is contained in:
parent
005b471dc7
commit
43473f7d4d
@ -56,28 +56,28 @@ export class JitsiWidgetWrapperComponent extends CapableWidget implements OnInit
|
||||
}
|
||||
|
||||
switch (request.action) {
|
||||
case "audioToggle":
|
||||
this.jitsiApiObj.executeCommand('toggleAudio');
|
||||
break;
|
||||
case "audioMute":
|
||||
this.jitsiApiObj.isAudioMuted().then((muted) => {
|
||||
// Toggle audio if Jitsi is not currently muted
|
||||
if (!muted) {
|
||||
this.jitsiApiObj.executeCommand('toggleAudio');
|
||||
}
|
||||
});
|
||||
break;
|
||||
case "audioUnmute":
|
||||
this.jitsiApiObj.isAudioMuted().then((muted) => {
|
||||
// Toggle audio if Jitsi is currently muted
|
||||
if (muted) {
|
||||
this.jitsiApiObj.executeCommand('toggleAudio');
|
||||
}
|
||||
});
|
||||
break;
|
||||
default:
|
||||
// Unknown command sent
|
||||
return;
|
||||
case "audioToggle":
|
||||
this.jitsiApiObj.executeCommand('toggleAudio');
|
||||
break;
|
||||
case "audioMute":
|
||||
this.jitsiApiObj.isAudioMuted().then((muted) => {
|
||||
// Toggle audio if Jitsi is not currently muted
|
||||
if (!muted) {
|
||||
this.jitsiApiObj.executeCommand('toggleAudio');
|
||||
}
|
||||
});
|
||||
break;
|
||||
case "audioUnmute":
|
||||
this.jitsiApiObj.isAudioMuted().then((muted) => {
|
||||
// Toggle audio if Jitsi is currently muted
|
||||
if (muted) {
|
||||
this.jitsiApiObj.executeCommand('toggleAudio');
|
||||
}
|
||||
});
|
||||
break;
|
||||
default:
|
||||
// Unknown command sent
|
||||
return;
|
||||
}
|
||||
|
||||
ScalarWidgetApi.replyAcknowledge(request);
|
||||
|
Loading…
Reference in New Issue
Block a user