New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep timestamp on every messages #985

Closed
praveens3190 opened this Issue May 21, 2018 · 2 comments

Comments

Projects
3 participants
@praveens3190

praveens3190 commented May 21, 2018

For first message time stamp is showing but for second message, first messages time stamp was get clear .t
I want to show date and time for every message(send or receive) how to achieve this pls help.
image
image

@Kartik1607

This comment has been minimized.

Kartik1607 commented May 31, 2018

Inside History.tsx you need to update

<WrappedActivity 
...
showTimestamp={ index === this.props.activities.length - 1 || (index + 1 < this.props.activities.length && suitableInterval(activity, this.props.activities[index + 1])) }
...
</WrappedActivity>

to

<WrappedActivity 
...
showTimestamp=true
...
</WrappedActivity>

@compulim compulim changed the title from How to display date and time along with chat user name in webchat to Keep timestamp on every messages Jun 18, 2018

@compulim

This comment has been minimized.

Collaborator

compulim commented Oct 31, 2018

This feature is now in v4. And here you can find the sample code to use this feature.

You can group it by:

  • Do not group (show timestamp on every activity)
  • Group by X milliseconds
  • Do not show timestamp at all

@compulim compulim closed this Oct 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment