diff options
Diffstat (limited to 'client-web/source/chat.ts')
-rw-r--r-- | client-web/source/chat.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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" }) |