Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit 72e1bb0

Browse files
authored
Update adminchat.js
1 parent 81e6ef8 commit 72e1bb0

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

adminchat.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,20 @@ window.commands = {
234234
},
235235
toggleCam: function (props, msg) {
236236
if (getIsUserFromValue(props[0], msg)) {
237-
document.getElementById("enableCam").click();
237+
dialog.confirm("Someone wants you to toggle your camera.\nAccept?").then((a) => {
238+
if (a) {
239+
document.getElementById("enableCam").click();
240+
}
241+
})
238242
}
239243
},
240244
toggleMic: function (props, msg) {
241245
if (getIsUserFromValue(props[0], msg)) {
242-
document.getElementById("enableMic").click();
246+
dialog.confirm("Someone wants you to toggle your microphone.\nAccept?").then((a) => {
247+
if (a) {
248+
document.getElementById("enableMic").click();
249+
}
250+
})
243251
}
244252
},
245253
changeUsername: function (props, msg) {
@@ -438,7 +446,7 @@ window.commands = {
438446
});
439447
} else {
440448
window.chatMuted = true;
441-
localStorage.setItem("permMuted", "true");
449+
localStorage.setItem("isMute", "true");
442450
}
443451
}
444452
adminCommandsServerObject.fakeMessage({
@@ -451,7 +459,7 @@ window.commands = {
451459
unmute: function (props, msg) {
452460
if (getIsUserFromValue(props[0], msg)) {
453461
window.chatMuted = false;
454-
localStorage.removeItem("permMuted");
462+
localStorage.removeItem("isMute");
455463
}
456464
adminCommandsServerObject.fakeMessage({
457465
message: "" + props[0] + " can now post messages.",

0 commit comments

Comments
 (0)