Skip to content

Commit cafa8f3

Browse files
authored
Merge pull request #5895 from nextcloud/issue-5860-pinned-thread-msg
Pinned messages are now opened properly in threads
2 parents 5368be0 + 7e22d1e commit cafa8f3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,11 +2600,10 @@ class ChatActivity :
26002600
}
26012601
if (position != null && position >= 0) {
26022602
val layoutManager = binding.messagesListView.layoutManager
2603-
// FIXME Not a perfect offset, but works to clear the pinned message view, try and find a better solution
26042603
(layoutManager as LinearLayoutManager).scrollToPositionWithOffset(position, 500)
26052604
} else {
26062605
Log.d(TAG, "message $messageId that should be scrolled to was not found (scrollToMessageWithId)")
2607-
startContextChatWindowForMessage(messageId, conversationThreadId?.toString())
2606+
startContextChatWindowForMessage(messageId, currentConversation?.internalId)
26082607
}
26092608
}
26102609

0 commit comments

Comments
 (0)