File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/components/Main/NavigationBar/NavigationContent Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import MessagePanel from '/@/components/UI/MessagePanel/MessagePanel.vue'
13
13
import { computed } from ' vue'
14
14
import type { ActivityTimelineMessage } from ' @traptitech/traq'
15
15
import useChannelPath from ' /@/composables/useChannelPath'
16
+ import { constructMessagesPath } from ' /@/router'
16
17
17
18
const props = defineProps <{
18
19
type: ' channel' | ' message'
@@ -24,5 +25,9 @@ const { channelIdToLink } = useChannelPath()
24
25
const titleType = computed (() =>
25
26
props .type === ' channel' ? ' channel' : ' user'
26
27
)
27
- const channelLink = computed (() => channelIdToLink (props .message .channelId ))
28
+ const channelLink = computed (() =>
29
+ props .type === ' channel'
30
+ ? channelIdToLink (props .message .channelId )
31
+ : constructMessagesPath (props .message .id )
32
+ )
28
33
</script >
You can’t perform that action at this time.
0 commit comments