stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

System message displays current time, not sent time

Open bscharfstein opened this issue 6 years ago • 3 comments

Describe the bug When we send a system message is displays the time sent as the current time, not the time the message was sent.

  • Package version: 0.6.0
  • react-native -iOS and android

To Reproduce Steps to reproduce the behavior:

  1. send a system message
  2. observe that time always displays current time

Expected behavior Time displays time sent

bscharfstein avatar Jan 15 '20 20:01 bscharfstein

Appears MessageSystem references message.received_at (which is undefined) causing Moment.js to create a Moment object for the current time. MessageSystem should instead reference message.created_at.

cenzovit avatar Jan 24 '20 23:01 cenzovit

@bscharfstein thanks for reporting this. I will look into it and get back to you soonish !!

vishalnarkhede avatar Jan 27 '20 10:01 vishalnarkhede

@bscharfstein @cenzovit Fix has been published - v0.6.3

Please let us know if it works !!

vishalnarkhede avatar Jan 29 '20 16:01 vishalnarkhede