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

Grouping options #412

Open
borut-t opened this issue Dec 18, 2023 · 2 comments
Open

Grouping options #412

borut-t opened this issue Dec 18, 2023 · 2 comments

Comments

@borut-t
Copy link

borut-t commented Dec 18, 2023

What are you trying to achieve?

We have a config groupMessages and maxTimeIntervalBetweenMessagesInGroup to group messages. However, this doesn't work when we have custom message views. I would like to have info option on the message e.g. isRootOfGroup to see when message if first in group. That would be useful to have since I need to show avatar only for the first message in the group.

If possible, how can you achieve this currently?

There is no easy solution for this. It would involve pre-fetching messages and add meta data to them.

What would be the better way?

If you add info option on the Message object to identify, if message is the first in the group.

GetStream Environment

GetStream Chat version: 4.45.0
GetStream Chat frameworks: StreamChat, StreamChatSwiftUI
iOS version: 17.x
Swift version: 5.9
Xcode version: 15.x
Device: iPhone

Additional context

@martinmitrevski
Copy link
Contributor

Hey @borut-t,

Thanks for reporting. Yes, at the moment we don't support this and in order to do it, we would need to do breaking changes to the public API.

Therefore, this will be tracked internally and introduced in a next major version release (v5).

Best, Martin

@borut-t
Copy link
Author

borut-t commented Dec 18, 2023

Thanks @martinmitrevski. I hope it goes through the implementation process for v5 🤞

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

No branches or pull requests

2 participants