Fix message links redirecting to home page.

This commit is contained in:
Paul
2021-07-31 15:11:58 +01:00
parent b95aa3391a
commit 909985b47d
2 changed files with 6 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ export function MessageArea({ id }: Props) {
const channel = client.channels.get(id);
if (channel?.channel_type === "TextChannel") {
history.push(`/server/${channel.server}/channel/${id}`);
history.push(`/server/${channel.server_id}/channel/${id}`);
} else {
history.push(`/channel/${id}`);
}