refactor: move room and space mention rendering into link components

This commit is contained in:
2026-04-07 00:30:46 +05:30
parent 12fd552e1b
commit ddb8391b02
8 changed files with 53 additions and 181 deletions
-3
View File
@@ -22,7 +22,6 @@
import Danger from "@assets/icons/danger-triangle.svg?dataurl"
import Icon from "@lib/components/Icon.svelte"
import Button from "@lib/components/Button.svelte"
import ContentText from "@app/components/ContentText.svelte"
import ContentToken from "@app/components/ContentToken.svelte"
import ContentEmoji from "@app/components/ContentEmoji.svelte"
import ContentCode from "@app/components/ContentCode.svelte"
@@ -106,8 +105,6 @@
{#each shortContent as parsed, i}
{#if isNewline(parsed)}
<ContentNewline value={parsed.value} />
{:else if isText(parsed)}
<ContentText value={parsed.value} />
{:else if isTopic(parsed)}
<ContentTopic value={parsed.value} />
{:else if isEmoji(parsed)}