From 2a8994cfab196accb5da1be02613f6699782b299 Mon Sep 17 00:00:00 2001 From: mehm8128 Date: Tue, 21 Nov 2023 14:13:11 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A2=E3=82=AF=E3=83=86=E3=82=A3=E3=83=93?= =?UTF-8?q?=E3=83=86=E3=82=A3=E3=81=A7=E8=A9=B2=E5=BD=93=E3=81=AE=E3=83=A1?= =?UTF-8?q?=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=81=AB=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E9=A3=9B=E3=81=B6=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NavigationBar/NavigationContent/ActivityElement.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Main/NavigationBar/NavigationContent/ActivityElement.vue b/src/components/Main/NavigationBar/NavigationContent/ActivityElement.vue index f779a0d924..e1a4e70bb0 100644 --- a/src/components/Main/NavigationBar/NavigationContent/ActivityElement.vue +++ b/src/components/Main/NavigationBar/NavigationContent/ActivityElement.vue @@ -13,6 +13,7 @@ import MessagePanel from '/@/components/UI/MessagePanel/MessagePanel.vue' import { computed } from 'vue' import type { ActivityTimelineMessage } from '@traptitech/traq' import useChannelPath from '/@/composables/useChannelPath' +import { constructMessagesPath } from '/@/router' const props = defineProps<{ type: 'channel' | 'message' @@ -24,5 +25,9 @@ const { channelIdToLink } = useChannelPath() const titleType = computed(() => props.type === 'channel' ? 'channel' : 'user' ) -const channelLink = computed(() => channelIdToLink(props.message.channelId)) +const channelLink = computed(() => + props.type === 'channel' + ? channelIdToLink(props.message.channelId) + : constructMessagesPath(props.message.id) +)