dash_chat
dash_chat copied to clipboard
[Bug] Old Chat messages are not aligned with sender to the right
Describe the bug
- When you load old chat messages on DashChat, the old messages of the sender appear aligned with the messages to the left. This means chat messages of the sender's phone and messages from other people in chat all show to the left together in a column. Only newly sent messages appear aligned correctly to the right and opposite side of the screen.
To Reproduce Steps to reproduce the behavior:
- Store previously sent messages and reload the widget.
Expected behavior Messages of the sender should appear aligned to the right of the sender's phone like how newly sent chat messages appear.
Screenshots
The way the alignment works is that I can check for the user's id with each message if the id matches it will be aligned to the right and if not to the left, so in your case, the messages might not have the correct id of something similar to this.