Browse Source

CHANGE | messages sending time tooltips in chat field

merge-requests/363/head
Yevhen Romanenko 2 years ago
parent
commit
70b1361be9
  1. 3
      src/shared/components/plugins/chat/chat-messages.component.tsx

3
src/shared/components/plugins/chat/chat-messages.component.tsx

@ -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

Loading…
Cancel
Save