From 6af298c5a332f865e626e1ca3903a5004ba1527d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 6 Sep 2023 23:13:06 +0200 Subject: fix automatic chat control --- client-web/source/chat.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client-web/source/chat.ts') diff --git a/client-web/source/chat.ts b/client-web/source/chat.ts index e81c8f6..7721df3 100644 --- a/client-web/source/chat.ts +++ b/client-web/source/chat.ts @@ -8,6 +8,7 @@ import { ChatMessage } from "../../common/packets.d.ts"; import { ediv, esection, espan, image_view, notify } from "./helper.ts"; import { log } from "./logger.ts"; +import { chat_control } from "./menu.ts"; import { PREFS } from "./preferences/mod.ts"; import { Room } from "./room.ts"; import { LocalUser } from "./user/local.ts"; @@ -78,8 +79,7 @@ export class Chat { if (message.text) els.push(espan(message.text, { class: "text" })) if (message.image) els.push(image_view(message.image, { class: "image" })) - // TODO! open - // this.shown = true + chat_control(true) const e = ediv({ class: "message" }, espan(sender.display_name, { class: "author" }), ": ", ...els) this.messages.append(e) e.scrollIntoView({ block: "end", behavior: "smooth", inline: "end" }) -- cgit v1.2.3-70-g09d2