feat: Inbox jump to chat button

This commit is contained in:
sevonj committed 2025-06-04 12:57:55 +03:00
1 parent b8e5d9e2eb
commit bd4755b527
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}