mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 07:02:10 -05:00
merge: branch 'master' into production
This commit is contained in:
commit
3204d176de
4 changed files with 30 additions and 21 deletions
|
@ -159,7 +159,8 @@ const Message = observer(
|
|||
/>
|
||||
</span>
|
||||
)}
|
||||
{replacement ?? <Markdown content={content} />}
|
||||
{replacement ??
|
||||
(content && <Markdown content={content} />)}
|
||||
{!queued && <InviteList message={message} />}
|
||||
{queued?.error && (
|
||||
<Category>
|
||||
|
|
|
@ -221,13 +221,15 @@ export const MessageReply = observer(
|
|||
</em>
|
||||
</>
|
||||
)}
|
||||
<Markdown
|
||||
disallowBigEmoji
|
||||
content={message.content?.replace(
|
||||
/\n/g,
|
||||
" ",
|
||||
)}
|
||||
/>
|
||||
{message.content && (
|
||||
<Markdown
|
||||
disallowBigEmoji
|
||||
content={message.content.replace(
|
||||
/\n/g,
|
||||
" ",
|
||||
)}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
|
|
@ -185,13 +185,15 @@ export default observer(({ channel, replies, setReplies }: Props) => {
|
|||
hideInfo
|
||||
/>
|
||||
) : (
|
||||
<Markdown
|
||||
disallowBigEmoji
|
||||
content={message.content?.replace(
|
||||
/\n/g,
|
||||
" ",
|
||||
)}
|
||||
/>
|
||||
message.content && (
|
||||
<Markdown
|
||||
disallowBigEmoji
|
||||
content={message.content.replace(
|
||||
/\n/g,
|
||||
" ",
|
||||
)}
|
||||
/>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -322,13 +322,17 @@ export const UserProfile = observer(
|
|||
/>
|
||||
)}
|
||||
{profile?.content && (
|
||||
<div className={styles.category}>
|
||||
<Text id="app.special.popovers.user_profile.sub.information" />
|
||||
</div>
|
||||
<>
|
||||
<div className={styles.category}>
|
||||
<Text id="app.special.popovers.user_profile.sub.information" />
|
||||
</div>
|
||||
<div className={styles.markdown}>
|
||||
<Markdown
|
||||
content={profile.content}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
<div className={styles.markdown}>
|
||||
<Markdown content={profile?.content} />
|
||||
</div>
|
||||
{/*<div className={styles.category}><Text id="app.special.popovers.user_profile.sub.connections" /></div>*/}
|
||||
</div>
|
||||
) : (
|
||||
|
|
Loading…
Reference in a new issue