diff --git a/src/app/components/RoomItemContent.svelte b/src/app/components/RoomItemContent.svelte index 6874413e..bc91b601 100644 --- a/src/app/components/RoomItemContent.svelte +++ b/src/app/components/RoomItemContent.svelte @@ -8,10 +8,14 @@ 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 ? 5000 : undefined) - const maxLength = props.maxLength ?? (props.event.kind === MESSAGE ? 5500 : undefined) + const minLength = + props.minLength ?? (props.event.kind === MESSAGE ? MESSAGE_MIN_LENGTH : undefined) + const maxLength = + props.maxLength ?? (props.event.kind === MESSAGE ? MESSAGE_MAX_LENGTH : undefined)