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

pull/721/head
Paul Makles 2022-06-28 13:23:45 +01:00
parent c997286340
commit b53d3bce13
1 changed files with 1 additions and 1 deletions

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}
/>,
);