mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
Fix message links redirecting to home page.
This commit is contained in:
@@ -171,15 +171,19 @@ export const MessageReply = observer(({ index, channel, id }: Props) => {
|
||||
<div
|
||||
className="content"
|
||||
onClick={() => {
|
||||
const channel = message.channel!;
|
||||
if (
|
||||
channel.channel_type === "TextChannel"
|
||||
) {
|
||||
console.log(
|
||||
`/server/${channel.server_id}/channel/${channel._id}/${message._id}`,
|
||||
);
|
||||
history.push(
|
||||
`/server/${channel.server_id}/channel/${channel._id}/${message._id}`,
|
||||
);
|
||||
} else {
|
||||
history.push(
|
||||
`/channel/${channel}/${message._id}`,
|
||||
`/channel/${channel._id}/${message._id}`,
|
||||
);
|
||||
}
|
||||
}}>
|
||||
|
||||
Reference in New Issue
Block a user