From 0a4be809c48baab2e3eb3aac5c9287bf45ffca08 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 28 Oct 2026 23:30:02 +0200 Subject: [PATCH] fix: readers see a remove button on a shared note's files (#33281) Since a recent dev change, a reader opening a shared note sees the remove button on every file in the note, although clicking it does nothing. The editor was created editable and only switched to read-only afterwards, so the files were drawn as if the reader could edit. It now starts read-only for readers, and their files show without the button. Fixes #33279 --- src/lib/components/common/RichTextInput.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/common/RichTextInput.svelte b/src/lib/components/common/RichTextInput.svelte index bca16f05bf..44f904b747 100644 --- a/src/lib/components/common/RichTextInput.svelte +++ b/src/lib/components/common/RichTextInput.svelte @@ -1051,6 +1051,7 @@ ...(collaboration && provider ? [provider.getEditorExtension()] : []) ], content: provider ? undefined : content, + editable, autofocus: messageInput && !$showCallOverlay, onTransaction: ({ transaction }) => { if (!editor) return;