From 5eed9ecc5e6811062609040ab60a82afc94e31dc Mon Sep 17 00:00:00 2001
From: Paul <paulmakles@gmail.com>
Date: Sat, 31 Jul 2021 13:50:29 +0100
Subject: [PATCH] Fix message links from replies.

---
 src/components/common/messaging/attachments/MessageReply.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/common/messaging/attachments/MessageReply.tsx b/src/components/common/messaging/attachments/MessageReply.tsx
index 9285fdc..1c2e29a 100644
--- a/src/components/common/messaging/attachments/MessageReply.tsx
+++ b/src/components/common/messaging/attachments/MessageReply.tsx
@@ -175,7 +175,7 @@ export const MessageReply = observer(({ index, channel, id }: Props) => {
                                         channel.channel_type === "TextChannel"
                                     ) {
                                         history.push(
-                                            `/server/${channel.server}/channel/${channel._id}/${message._id}`,
+                                            `/server/${channel.server_id}/channel/${channel._id}/${message._id}`,
                                         );
                                     } else {
                                         history.push(
-- 
GitLab