Skip to content

feat: Group messages by sender and date#444

Closed
Namaneo wants to merge 1 commit into
SimformSolutionsPvtLtd:mainfrom
Namaneo:group-messages
Closed

feat: Group messages by sender and date#444
Namaneo wants to merge 1 commit into
SimformSolutionsPvtLtd:mainfrom
Namaneo:group-messages

Conversation

@Namaneo

@Namaneo Namaneo commented May 19, 2026

Copy link
Copy Markdown

Description

This PR adds an option to group messages by sender and date.

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

This likely addresses #128.

@japanshah-simform

Copy link
Copy Markdown
Contributor

Issue in PR - O(n) indexWhere on every build — _messageIndex scans the entire message list on every rebuild of every bubble. In a conversation with 500 messages, this means 500 × 500 = 250,000 comparisons per full rebuild. The index (or the pre-computed isFirstInGroup/isLastInGroup values) should be passed down from the parent as a constructor parameter instead.

Opening PR #445 for the same.

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

Successfully merging this pull request may close these issues.

2 participants