Added setting to hide channel chat prompt button

This commit is contained in:
rainbow napkin 2026-10-03 07:43:39 -04:00
parent 3815617a8e
commit 4af9d25573
3 changed files with 36 additions and 2 deletions

View file

@ -312,6 +312,19 @@ class channel{
//Toggle portrait mode
this.chatBox.togglePortrait();
return;
case 'disableSendButton':
//if the send button isn't loaded
if(this.chatBox.sendButton == null){
//we're fuckin' done here
return;
}
console.log(value);
console.log((value == true || value == "true") ? "none" : "unset");
//Convert string to bool and use it to set visibility of send button
this.chatBox.sendButton.style.display = (value == true || value == "true") ? "none" : "unset";
return;
case 'userlistHidden':
//If the userlist class isn't loaded in yet
if(this.userList == null){
@ -346,13 +359,14 @@ class channel{
["syncDelta", 6],
["theme", "Movie Night"],
["chatWidthMin", 20],
["disablePortrait", false],
["disableSendButton", false],
["userlistHidden", false],
["cinemaMode", false],
["rxPMSound", 'unread'],
["txPMSound", false],
["newSeshSound", true],
["endSeshSound", true],
["disablePortrait", false]
["endSeshSound", true]
]);
}