stream-chat-swift icon indicating copy to clipboard operation
stream-chat-swift copied to clipboard

Click action on Quoted message not scrolling list to Message

Open SSaleemSSI opened this issue 1 year ago • 2 comments

What did you do?

I add action on replied quoted message to move the list view to respective index when user click on it but it wont move. IndexPath always return current message index when clicked.

What did you expect to happen?

scroll the list to top where original message is

What happened instead?

Nothing happened

GetStream Environment

GetStream Chat version: GetStream Chat frameworks: StreamChat, StreamChatUI iOS version: Swift version: Xcode version: Device:

Additional context

 override func messageContentViewDidTapOnQuotedMessage(_ indexPath: IndexPath?) {
        print("index path = " , indexPath!.row) // always return current message index not the QuotedMessage
        guard let indexPath = indexPath else {
           
            return log.error("IndexPath is not available")
            
        } 
        listView.scrollToRow(at: indexPath, at: .top, animated: true)
        print("tapped quoted message" , indexPath.row)
        log
            .info(
                "Tapped a quoted message. To customize the behavior, override messageContentViewDidTapOnQuotedMessage. Path: \(indexPath)"
            )
    }

SSaleemSSI avatar Aug 02 '22 12:08 SSaleemSSI

Hi @SSaleemSSI,

Thanks for the report. I'm reviewing the issue with the team and will come back to you soon.

Regards, Hugo

hugobernalstream avatar Aug 03 '22 21:08 hugobernalstream

Hi @SSaleemSSI ,

After investigating the issue internally, messageContentViewDidTapOnQuotedMessage(_ indexPath: IndexPath?) indeed returns the current message index. This is not a bug per se, but we do realize we should have another method to expose the index of the quoted message. We now have an internal ticket for tracking this issue down and add this missing functionality as soon as possible.

We'll update this issue once the functionality is released in a future version.

Regards, Hugo

hugobernalstream avatar Aug 08 '22 17:08 hugobernalstream

Hi - @hugobernalstream is there any update on this issue?

SSaleemSSI avatar Oct 13 '22 06:10 SSaleemSSI

Hi @SSaleemSSI,

This is planned for Q4, we will let you know once this is released.

Best, Nuno

nuno-vieira avatar Oct 13 '22 10:10 nuno-vieira

This is now added to the latest release! 🚀

Thank you for your patience!

nuno-vieira avatar Mar 17 '23 14:03 nuno-vieira