diff --git a/src/components/Main/NavigationBar/NavigationContent/ActivityElement.vue b/src/components/Main/NavigationBar/NavigationContent/ActivityElement.vue index d177583ab8..e6c5ee2f7f 100644 --- a/src/components/Main/NavigationBar/NavigationContent/ActivityElement.vue +++ b/src/components/Main/NavigationBar/NavigationContent/ActivityElement.vue @@ -12,6 +12,7 @@ import type { ActivityTimelineMessage } from '@traptitech/traq' import { computed } from 'vue' import MessagePanel from '/@/components/UI/MessagePanel/MessagePanel.vue' import useChannelPath from '/@/composables/useChannelPath' +import { constructMessagesPath } from '/@/router' const props = defineProps<{ type: 'channel' | 'message' @@ -23,5 +24,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) +) diff --git a/src/components/Modal/FileModal/FileModal.vue b/src/components/Modal/FileModal/FileModal.vue index f1e07fb27e..4e2a835a75 100644 --- a/src/components/Modal/FileModal/FileModal.vue +++ b/src/components/Modal/FileModal/FileModal.vue @@ -1,6 +1,10 @@