automatically scroll to quoted message
add the ability to tap on a quoted message to automatically scroll to it
A very useful function. This is missing from Talk Android.
Hey, this sounds like a cool issue!
I'm guessing that this would involve some kind of onClickListener on the message quote in IncomingTextMessageViewHolder.kt, but since I'm controlling the scroll I'll probably have to pass in a ChatController object from TalkMessagesListAdapter.java in the onBindViewHolder() method right? Probably using a helper method in IncomingTextMessageViewHolder to set the onClickListener onto the actual quoted message view.
I know that the quoted message text is taken from a ChatMessage object called parentMessage. I'm not exactly sure how I'll be able to access the scroll position of view associated with parentMessage though. The only thing I can think of is to somehow find the object associated with parentMessage in the list of Chat Messages called items, and using it's index as a scroll position?