refactor: use regular text for chat

This commit is contained in:
2023-07-31 18:24:39 +02:00
parent 65fd21f334
commit db56a801d0
4 changed files with 156 additions and 232 deletions

View File

@ -14,7 +14,7 @@ import { EmojiPicker } from "./emoji-picker";
import { Icon } from "./icon";
import { Emoji } from "./emoji";
import { Profile } from "./profile";
import { Markdown } from "./markdown";
import { Text } from "element/text";
import { SendZapsDialog } from "./send-zap";
import { findTag } from "../utils";
import type { EmojiPack } from "../hooks/emoji";
@ -152,12 +152,7 @@ export function ChatMessage({
pubkey={ev.pubkey}
profile={profile}
/>
<Markdown
element="span"
enableParagraphs={false}
tags={ev.tags}
content={ev.content}
/>
<Text tags={ev.tags} content={ev.content} />
{(hasReactions || hasZaps) && (
<div className="message-reactions">
{hasZaps && (