Skip to content

feat(timeline): configurable message grouping threshold#819

Draft
Just-Insane wants to merge 1 commit into
SableClient:devfrom
Just-Insane:feat/message-grouping
Draft

feat(timeline): configurable message grouping threshold#819
Just-Insane wants to merge 1 commit into
SableClient:devfrom
Just-Insane:feat/message-grouping

Conversation

@Just-Insane
Copy link
Copy Markdown
Contributor

Description

Exposes the message grouping time threshold as a user-configurable setting. Messages sent within the threshold window by the same sender are visually grouped (compact, no repeated avatar/name). Users can now adjust this window to taste or disable grouping entirely.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code

Add Discord-style message grouping where consecutive messages from the
same sender within a configurable time window collapse the sender header.

- Add messageGroupingThreshold to Settings type (default: 2 min)
- Replace hardcoded 2-min threshold in useProcessedTimeline with the setting
- Wire useSetting in RoomTimeline and pass to useProcessedTimeline
- Add MessageGrouping component in Experimental settings with 5 options:
  2 min (default), 5 min, 15 min (Discord-style), 30 min, 60 min

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant