Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
chore: format body every time, so twemoji get replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
marekvospel committed Dec 14, 2023
1 parent bf390bc commit 2a438eb
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 12 deletions.
55 changes: 45 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{#if event.getContent().format === 'org.matrix.custom.html'}
<MessageFormatted body={event.getContent().formatted_body} />
{:else}
<p class="font-400 break-all">{ event.getContent().body }</p>
<MessageFormatted body={ event.getContent().body } />
{/if}
{:else if event.getContent().msgtype === 'm.image'}
<MessageImage file={event.getContent().file} alt={event.getContent().body} />
Expand All @@ -49,7 +49,7 @@
<img src={client.mxcUrlToHttp(event.getContent().url)} alt={event.getContent().body} />
{/if}
{:else}
<p class="font-400">{ event.getType() } { JSON.stringify(event.getContent()) }</p>
<p class="font-400 text-subtext0">{ event.getType() } { JSON.stringify(event.getContent()) }</p>
{/if}
</div>
{/each}
Expand Down

0 comments on commit 2a438eb

Please sign in to comment.