Message aggregator panels show a date divider above every message
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 1/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, react
- Área
- frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- JavaScript
- Estrellas
- 171
- Forks
- 421
- Merge medio
- 3 d 6 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RocketChat/EmbeddedChat
-
Bug: username fallback in updateUserUsername never runs since the ddp-client migrationPosiblemente ocupada @MuhammadFaizan-prog la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
RocketChat/EmbeddedChat#1489 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Low contrast on color swatch borders in Theme Lab (Layout Editor)Posiblemente ocupada @yashsarvaiya45 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
RocketChat/EmbeddedChat#1486 ·
Los mantenedores suelen responder en 1 día
-
bug(api): _doConnect swallows connection/auth errors and marks failed sessions as authenticatedPosiblemente ocupada @ashwanisingh011 la tomó hace 1 día. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
RocketChat/EmbeddedChat#1484 ·
Los mantenedores suelen responder en 1 día
-
Bug: White screen crash (`Cannot read properties of undefined (reading 'members')`) when rendering UserMention outside MarkupInteractionContextPosiblemente ocupada @swarnendusahu10-dotcom la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RocketChat/EmbeddedChat#1482 ·
Los mantenedores suelen responder en 1 día
-
Bug: UIKit PreviewBlock cover image tiles repeatedly and stretches across viewport when zoomed outPosiblemente ocupada @swarnendusahu10-dotcom la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
RocketChat/EmbeddedChat#1480 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de RocketChat/EmbeddedChat
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Life-Framework/Life-Framework#7017 ·
Los mantenedores suelen responder en 1 día
-
e/DevOps enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Accenture/sfmc-devtools#2795 ·
Los mantenedores suelen responder en 1 día
-
agent/guide documentation help wanted stage/010-actionable
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
kubestellar/console-kb#4003 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
FilOzone/synapse-sdk#1201 · 1 comentario ·
Los mantenedores suelen responder en 1 día