diff --git a/src/components/Main/NavigationBar/NavigationContent/ActivityElement.vue b/src/components/Main/NavigationBar/NavigationContent/ActivityElement.vue index f779a0d92..e1a4e70bb 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) +)