Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChatChannelView doesn't scroll to selected message #210

Closed
ajay-simform opened this issue Sep 28, 2022 · 6 comments
Closed

ChatChannelView doesn't scroll to selected message #210

ajay-simform opened this issue Sep 28, 2022 · 6 comments

Comments

@ajay-simform
Copy link

What did you do?

  • Create ChatMessageSearchController
  • search old/previous message from the channel
  • go to ChatChannelView by giving selected message to scrollToMessage

What did you expect to happen?

  • The messageList should scroll to particular message. No matter if it needs pagination or something.

What happened instead?

  • The message doesn't scroll to the selected message index

GetStream Environment

GetStream Chat version: 4.22.0
GetStream Chat frameworks: StreamChat, StreamChatSwiftUI
iOS version: 16.0
Swift version: 5
Xcode version: Xcode-14
Device: iPhone 14

@martinmitrevski
Copy link
Contributor

Hello @ajay-simform,

At the moment, the scrolling to a particular message only works if the message is already loaded in the chat channel view.

The case where the message is not loaded (and requires additional loading of messages and bi-directional scrolling), is something that we already plan to implement soon.

This needs to be implement in our low-level client first, so keep an eye for updates in this repo: https://github.com/GetStream/stream-chat-swift.

As soon as it's implemented there, we will enable it in SwiftUI.

Best,
Martin

@davitykale
Copy link

Hey @martinmitrevski -- any updates here? Would it be possible to link to the specific issue where this is being tracked in the stream-chat-swift repo?

@martinmitrevski
Copy link
Contributor

Hey @davitykale,

The team is currently working on this. It's a bigger effort, that we expect to be finished this quarter (if all goes well).

We have this task internally in our ticketing system, and there's a discussion related here: GetStream/stream-chat-swift#1764.

As soon as we have info, we will update this ticket too.

@ajay-simform
Copy link
Author

Hi @martinmitrevski ,

Could you please provide me with an update on the current status of this issue?
Thank you.

@martinmitrevski
Copy link
Contributor

Hi @ajay-simform,

This is only available in the UIKit SDK for now. At the moment we have other higher priorities, so for SwiftUI it will come most likely in Q3.

Best, Martin

@martinmitrevski
Copy link
Contributor

Hi,

This one is now available in our main branch and it will come in the next release, most likely later this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants