Browse Source

Merge branch 'change/chat-tooltip' into 'master'

CHANGE | messages sending time tooltips in chat field

See merge request jetup/rws/rws-appication!363
merge-requests/364/head
Coder 2 years ago
parent
commit
31297a8afc
  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