|
|
|
@ -111,6 +111,9 @@ export const ChatMessages: FC<ChatMessagesProps> = ({ items, ...props }) => {
@@ -111,6 +111,9 @@ export const ChatMessages: FC<ChatMessagesProps> = ({ items, ...props }) => {
|
|
|
|
|
const key = |
|
|
|
|
createdAt >= moment().startOf('day') |
|
|
|
|
? 'Сьогодні' |
|
|
|
|
: createdAt >= |
|
|
|
|
moment().subtract(1, 'days').startOf('day') |
|
|
|
|
? 'Вчора' |
|
|
|
|
: createdAt.format('DD-MM-YYYY') |
|
|
|
|
|
|
|
|
|
it.isMy = it.authorId === props.userId |
|
|
|
|