stream-chat-react-native
stream-chat-react-native copied to clipboard
System message displays current time, not sent time
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:
- send a system message
- observe that time always displays current time
Expected behavior Time displays time sent
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.
@bscharfstein thanks for reporting this. I will look into it and get back to you soonish !!