mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
fix: display voice channel as link in messages (#658)
* fix: display voice channel as link in messages * chore: format
This commit is contained in:
@@ -168,7 +168,10 @@ export default function Renderer({ content, disallowBigEmoji }: MarkdownProps) {
|
|||||||
const id = args[0] as string,
|
const id = args[0] as string,
|
||||||
channel = client.channels.get(id);
|
channel = client.channels.get(id);
|
||||||
|
|
||||||
if (channel?.channel_type === "TextChannel") {
|
if (
|
||||||
|
channel?.channel_type === "TextChannel" ||
|
||||||
|
channel?.channel_type === "VoiceChannel"
|
||||||
|
) {
|
||||||
return `[#${channel.name}](/server/${channel.server_id}/channel/${id})`;
|
return `[#${channel.name}](/server/${channel.server_id}/channel/${id})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user