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

feat: configure message group size by max time between messages #2439

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

MartinCupela
Copy link
Contributor

🎯 Goal

The goal is the parity with RN Chat SDK.

🛠 Implementation details

If the value of maxTimeBetweenGroupedMessages is greater then the difference btw the current and next message creation date, the groupd is considered to end with the current message. Effectively, what happens is that the message is applied a class str-chat__li--bottom. The visual result is reflected in MessageList (each message has timestamp and author (metadata) shown) but not in VirtualizedMessageList which has additional logic that decides whether a group ends at a given message. This should be synced with the MessageList but potentially introducing breaking changes to the integrators using VirtualizedMessageList :it_is_what_it_is_emoji.

Copy link

codecov bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.44%. Comparing base (741e9ce) to head (bd824a5).
Report is 1 commits behind head on release-v11.

Additional details and impacted files
@@             Coverage Diff              @@
##           release-v11    #2439   +/-   ##
============================================
  Coverage        85.44%   85.44%           
============================================
  Files              392      392           
  Lines             9084     9084           
  Branches          2346     2346           
============================================
  Hits              7762     7762           
  Misses            1121     1121           
  Partials           201      201           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MartinCupela MartinCupela requested a review from myandrienko June 27, 2024 15:37
@MartinCupela MartinCupela merged commit 0d094cb into release-v11 Jun 28, 2024
8 checks passed
@MartinCupela MartinCupela deleted the feat/maxTimeBetweenGroupedMessages branch June 28, 2024 07:28
github-actions bot pushed a commit that referenced this pull request Jun 28, 2024
## [11.23.0](v11.22.0...v11.23.0) (2024-06-28)

### Bug Fixes

* adapt audio recording wave form to the available space ([#2435](#2435)) ([aed0360](aed0360))
* always load thread replies on Thread opening ([#2436](#2436)) ([579953c](579953c))
* forward groupStyles to Message in VirtualizedMessageList ([#2440](#2440)) ([241f5d7](241f5d7))
* reflect correctly the translation key in Timestamp component ([741e9ce](741e9ce))

### Features

* configure message group size by max time between messages ([#2439](#2439)) ([0d094cb](0d094cb))
@stream-ci-bot
Copy link
Collaborator

🎉 This PR is included in version 11.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants