diff options
author | metamuffin <metamuffin@disroot.org> | 2023-09-06 23:13:06 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-09-06 23:13:06 +0200 |
commit | 6af298c5a332f865e626e1ca3903a5004ba1527d (patch) | |
tree | 7c55bf1ff1a1a08d0e767e357c33eebba8865137 /client-web/source/chat.ts | |
parent | 865607c4f4e992fd32c2241e896e56e1a4fcfe28 (diff) | |
download | keks-meet-6af298c5a332f865e626e1ca3903a5004ba1527d.tar keks-meet-6af298c5a332f865e626e1ca3903a5004ba1527d.tar.bz2 keks-meet-6af298c5a332f865e626e1ca3903a5004ba1527d.tar.zst |
fix automatic chat control
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" }) |