mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 10:15:26 +00:00
Merge 9dd923bf26 into 41f47a1a3f
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Reply } from "@styled-icons/boxicons-regular";
|
import { Reply, LinkExternal } from "@styled-icons/boxicons-regular";
|
||||||
import { File } from "@styled-icons/boxicons-solid";
|
import { File } from "@styled-icons/boxicons-solid";
|
||||||
import { observer } from "mobx-react-lite";
|
import { observer } from "mobx-react-lite";
|
||||||
import { useHistory } from "react-router-dom";
|
import { useHistory } from "react-router-dom";
|
||||||
@@ -230,6 +230,25 @@ export const MessageReply = observer(
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{message.embeds &&
|
||||||
|
message.embeds.length > 0 &&
|
||||||
|
message.embeds.map((embed, i) =>
|
||||||
|
embed.title ? ( // If there's title, display title
|
||||||
|
<span
|
||||||
|
key={i}
|
||||||
|
className="embed-title">
|
||||||
|
<strong>
|
||||||
|
{embed.title}
|
||||||
|
</strong>
|
||||||
|
</span>
|
||||||
|
) : (
|
||||||
|
<LinkExternal // If not, display a link external boxicon
|
||||||
|
key={i}
|
||||||
|
size={16}
|
||||||
|
className="embed-title"
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user