fix minor typebox regression

This commit is contained in:
Mathium05
2026-08-15 15:27:26 -05:00
parent c649cfdc12
commit 6cfae0cdbd
2 changed files with 1 additions and 4 deletions
-4
View File
@@ -2588,10 +2588,6 @@ class Channel extends SnowFlake {
if (this.curCommand) {
this.curCommand.render(TypeBox.box, this);
}
TypeBox.box.style.setProperty(
"--channel-text",
JSON.stringify(I18n.channel.typebox(this.shortName)),
);
if (getMessages === undefined) {
getMessages = this.type !== 2 || !this.localuser.voiceAllowed;
+1
View File
@@ -153,6 +153,7 @@ export class TypeBox {
for (const file of this.files) {
this.addFile(file, false);
}
this.box.style.setProperty("--channel-text", JSON.stringify(I18n.channel.typebox(c.shortName)));
}
static changeWrite() {
if (!this.localuser?.focusChannel) return;