From 85c5293082be306c2fd8e4337527bec1695ebb81 Mon Sep 17 00:00:00 2001 From: Priyanshubhartistm Date: Fri, 10 Apr 2026 16:37:23 +0000 Subject: [PATCH] Raise message size limit in chat (#186) Co-authored-by: Priyanshubhartistm Co-committed-by: Priyanshubhartistm --- src/app/components/RoomItemContent.svelte | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/components/RoomItemContent.svelte b/src/app/components/RoomItemContent.svelte index 880cbcd4..bc91b601 100644 --- a/src/app/components/RoomItemContent.svelte +++ b/src/app/components/RoomItemContent.svelte @@ -8,16 +8,22 @@ import {getRoomItemPath} from "@app/util/routes" const props: ComponentProps = $props() + const MESSAGE_MIN_LENGTH = 5000 + const MESSAGE_MAX_LENGTH = 5500 const path = getRoomItemPath(props.url!, props.event) + const minLength = + props.minLength ?? (props.event.kind === MESSAGE ? MESSAGE_MIN_LENGTH : undefined) + const maxLength = + props.maxLength ?? (props.event.kind === MESSAGE ? MESSAGE_MAX_LENGTH : undefined)
{#if path && !isMobile} - + {:else} - + {/if}