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) {
|
switch (request.action) {
|
||||||
case "audioToggle":
|
case "audioToggle":
|
||||||
this.jitsiApiObj.executeCommand('toggleAudio');
|
this.jitsiApiObj.executeCommand('toggleAudio');
|
||||||
break;
|
break;
|
||||||
case "audioMute":
|
case "audioMute":
|
||||||
this.jitsiApiObj.isAudioMuted().then((muted) => {
|
this.jitsiApiObj.isAudioMuted().then((muted) => {
|
||||||
// Toggle audio if Jitsi is not currently muted
|
// Toggle audio if Jitsi is not currently muted
|
||||||
if (!muted) {
|
if (!muted) {
|
||||||
this.jitsiApiObj.executeCommand('toggleAudio');
|
this.jitsiApiObj.executeCommand('toggleAudio');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "audioUnmute":
|
case "audioUnmute":
|
||||||
this.jitsiApiObj.isAudioMuted().then((muted) => {
|
this.jitsiApiObj.isAudioMuted().then((muted) => {
|
||||||
// Toggle audio if Jitsi is currently muted
|
// Toggle audio if Jitsi is currently muted
|
||||||
if (muted) {
|
if (muted) {
|
||||||
this.jitsiApiObj.executeCommand('toggleAudio');
|
this.jitsiApiObj.executeCommand('toggleAudio');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Unknown command sent
|
// Unknown command sent
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ScalarWidgetApi.replyAcknowledge(request);
|
ScalarWidgetApi.replyAcknowledge(request);
|
||||||
|
Loading…
Reference in New Issue
Block a user