Navigate to reply instead of parent comment

This commit is contained in:
CREDO23 2026-02-04 15:18:25 +02:00
parent d5b75956c3
commit 6d1a363683

View file

@ -370,14 +370,14 @@ export function InboxSidebar({
if (isCommentReplyMetadata(item.metadata)) {
const searchSpaceId = item.search_space_id;
const threadId = item.metadata.thread_id;
const commentId = item.metadata.parent_comment_id;
const replyId = item.metadata.reply_id;
if (searchSpaceId && threadId) {
if (commentId) {
setTargetCommentId(commentId);
if (replyId) {
setTargetCommentId(replyId);
}
const url = commentId
? `/dashboard/${searchSpaceId}/new-chat/${threadId}?commentId=${commentId}`
const url = replyId
? `/dashboard/${searchSpaceId}/new-chat/${threadId}?commentId=${replyId}`
: `/dashboard/${searchSpaceId}/new-chat/${threadId}`;
onOpenChange(false);
onCloseMobileSidebar?.();