fix: don't display date on ("new") message divider

This commit is contained in:
Paul Makles 2022-06-28 13:23:45 +01:00
parent c997286340
commit b53d3bce13

View file

@ -126,7 +126,7 @@ export default observer(({ last_id, renderer, highlight }: Props) => {
if (unread || date) {
render.push(
<MessageDivider
date={dayjs(date).format("LL")}
date={date ? dayjs(date).format("LL") : undefined}
unread={unread}
/>,
);