Message aggregator panels show a date divider above every message

オープン
#1,466 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Jaivansh-777 がすでに取り組んでいます。

2026年11月27日 から。

  • #1468 @Jaivansh-777 による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
1/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
javascript, react
領域
frontend

調査の方向性

The issue points to packages/react/src/views/MessageAggregators/common/MessageAggregator.js and names ThreadMessageList as a comparison. Read the isMessageNewDay logic and check how the message list is filtered; done means same-day messages share one date divider, matching the main chat. A linked pull request (#1468) is already open.

索引モデルが issue の本文から書いたものです。

説明

bug
Description:

In Pinned, Starred, Mentions, Threads and Search, a date divider shows up above every single message, even when they're all from the same day.

isMessageNewDay in packages/react/src/views/MessageAggregators/common/MessageAggregator.js:

const isMessageNewDay = (current, previous) =>
  !previous ||
  shouldRender(previous) ||
  !isSameDay(new Date(current.ts), new Date(previous.ts));

The list this runs over comes from useSetMessageList, which already does messages.filter(shouldRender). So shouldRender(previous) is always true after the first message, and every message gets a divider.

Steps to reproduce:
  1. Pin (or star) two or more messages sent on the same day
  2. Open the Pinned (or Starred) panel
Expected behavior:

One date divider per day, like in the main chat.

Actual behavior:

A date divider above every message.

Fix is a one-liner: drop shouldRender(previous) || so it's just !previous || !isSameDay(...), which is what ThreadMessageList already does. I'll open a PR.

主要言語
JavaScript
スター
171
フォーク
421
平均マージ
3日 6時間
マージ済み PR(30日)
4

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RocketChat/EmbeddedChat のほかの issue

RocketChat/EmbeddedChat の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。