Merge pull request #544 from sevonj/feat-inbox-message-jump

feat: Inbox jump to chat button
This commit is contained in:
Xylight authored and GitHub committed 2025-06-06 11:14:14 -07:00
commit 517759b2c2
1 file changed
+10 -10
+10 -10
View File
@@ -133,16 +133,16 @@
? $t('post.actions.more.markUnread')
: $t('post.actions.more.markRead')}
</Button>
{#if item.type == 'comment_reply' || item.type == 'person_mention'}
<Button
href="/comment/{item.item.comment.id}"
size="sm"
rounding="pill"
class="flex-shrink-0"
>
{$t('common.jump')}
</Button>
{/if}
<Button
href={item.type == 'comment_reply' || item.type == 'person_mention'
? `/comment/${item.item.comment.id}`
: `/inbox/messages/${item.item.private_message.creator_id}`}
size="sm"
rounding="pill"
class="flex-shrink-0"
>
{$t('common.jump')}
</Button>
</div>
</div>
{/snippet}