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.markUnread')
: $t('post.actions.more.markRead')} : $t('post.actions.more.markRead')}
</Button> </Button>
{#if item.type == 'comment_reply' || item.type == 'person_mention'} <Button
<Button href={item.type == 'comment_reply' || item.type == 'person_mention'
href="/comment/{item.item.comment.id}" ? `/comment/${item.item.comment.id}`
size="sm" : `/inbox/messages/${item.item.private_message.creator_id}`}
rounding="pill" size="sm"
class="flex-shrink-0" rounding="pill"
> class="flex-shrink-0"
{$t('common.jump')} >
</Button> {$t('common.jump')}
{/if} </Button>
</div> </div>
</div> </div>
{/snippet} {/snippet}