Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ ENV BODY_SIZE_LIMIT=15728640
COPY --from=builder --chown=1000 /app/build /app/build
COPY --from=builder --chown=1000 /app/node_modules /app/node_modules

RUN apt -y update && apt-get install -y curl dnsutils

CMD ["/bin/bash", "-c", "/app/entrypoint.sh"]
5 changes: 5 additions & 0 deletions src/lib/components/chat/ChatInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import { isVirtualKeyboard } from "$lib/utils/isVirtualKeyboard";
import { requireAuthUser } from "$lib/utils/auth";
import { page } from "$app/state";

interface Props {
files?: File[];
Expand Down Expand Up @@ -93,6 +94,7 @@
: Promise.resolve();

async function focusTextarea() {
if (page.data.shared && page.data.loginEnabled && !page.data.user) return;
if (!textareaElement || textareaElement.disabled || isVirtualKeyboard()) return;
if (typeof document !== "undefined" && document.activeElement === textareaElement) return;

Expand Down Expand Up @@ -163,6 +165,9 @@
}

function handleFocus() {
if (requireAuthUser()) {
return;
}
if (blurTimeout) {
clearTimeout(blurTimeout);
blurTimeout = null;
Expand Down
Loading