chat: send correct timestamp to daybreak

Fixes #4127.
This commit is contained in:
Matilde Park 2020-12-11 11:59:53 -05:00
parent 82851feaea
commit 3662df0e73

View File

@ -144,12 +144,12 @@ export default class ChatMessage extends Component<ChatMessageProps> {
style={style}
mb={1}
>
{dayBreak && !isLastRead ? <DayBreak when={msg.when} /> : null}
{dayBreak && !isLastRead ? <DayBreak when={msg['time-sent']} /> : null}
{renderSigil
? <MessageWithSigil {...messageProps} />
: <MessageWithoutSigil {...messageProps} />}
<Box flexShrink={0} fontSize={0} position='relative' width='100%' overflow='visible' style={unreadContainerStyle}>{isLastRead
? <UnreadMarker dayBreak={dayBreak} when={msg.when} ref={unreadMarkerRef} />
? <UnreadMarker dayBreak={dayBreak} when={msg['time-sent']} ref={unreadMarkerRef} />
: null}</Box>
</Box>
);