Skip to content

Commit 6e2cef8

Browse files
committed
Fix introduced issue
1 parent dd4af1a commit 6e2cef8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Sources/StreamChatSwiftUI/ChatChannel/ChatChannelViewModel.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,10 @@ open class ChatChannelViewModel: ObservableObject, MessagesDataSource {
246246
threadMessage = message
247247
threadMessageShown = true
248248

249-
// If there's a specific reply message to highlight (for showReplyInChannel messages),
250-
// we need to highlight that specific message in the thread. Otherwise, highlight the
251-
// parent message (which is the root of the thread).
249+
// Only set jumpToReplyId if there's a specific reply message to highlight
250+
// (for showReplyInChannel messages). The parent message should never be highlighted.
252251
if let replyMessage = notification.userInfo?[MessageRepliesConstants.threadReplyMessage] as? ChatMessage {
253252
messageCachingUtils.jumpToReplyId = replyMessage.messageId
254-
} else {
255-
messageCachingUtils.jumpToReplyId = message.messageId
256253
}
257254
}
258255
}

0 commit comments

Comments
 (0)