Skip to content

Commit

Permalink
Merge pull request #4161 from traPtitech/feat/jump_specified_message_…
Browse files Browse the repository at this point in the history
…directly_on_activity

アクティビティで該当のメッセージに直接飛ぶように
  • Loading branch information
mehm8128 authored Dec 17, 2023
2 parents 98dfbfb + 2a8994c commit e5d3cff
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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)
)
</script>

0 comments on commit e5d3cff

Please sign in to comment.