Message aggregator panels show a date divider above every message
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 1/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, react
- Ambito
- frontend
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:
- Pin (or star) two or more messages sent on the same day
- 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.
- Lingua principale
- JavaScript
- Stelle
- 171
- Fork
- 421
- Merge medio
- 3g 6h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RocketChat/EmbeddedChat
-
Bug: username fallback in updateUserUsername never runs since the ddp-client migrationForse già presa @MuhammadFaizan-prog l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
RocketChat/EmbeddedChat#1489 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Low contrast on color swatch borders in Theme Lab (Layout Editor)Forse già presa @yashsarvaiya45 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
RocketChat/EmbeddedChat#1486 ·
I maintainer di solito rispondono entro 1 giorno
-
bug(api): _doConnect swallows connection/auth errors and marks failed sessions as authenticatedForse già presa @ashwanisingh011 l’ha presa 1 giorno fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
RocketChat/EmbeddedChat#1484 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: White screen crash (`Cannot read properties of undefined (reading 'members')`) when rendering UserMention outside MarkupInteractionContextForse già presa @swarnendusahu10-dotcom l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
RocketChat/EmbeddedChat#1482 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: UIKit PreviewBlock cover image tiles repeatedly and stretches across viewport when zoomed outForse già presa @swarnendusahu10-dotcom l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
RocketChat/EmbeddedChat#1480 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RocketChat/EmbeddedChat
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
[Docs] CONTRIBUTING.md links to retired GitHub Learning Lab and Try Git sitesForse già presa @adityamukesh l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
reillywalter/win-dev-doctor#92 ·
I maintainer di solito rispondono entro 1 giorno
-
[Feature] 新增「查看完整听歌设备记录」接口Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100