-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Order message a in conversation by date/timestamp #9524
Comments
@zhiru We don't recommend directly populating the database, as the associated callbacks won't be executed. You can reorder the messages and populate the messages through a script. |
we are using a system to get history of messages, so when post/api/v1/accounts/..../conversations/.../messages tha messages saves right, but i can control the order off arriving dates. example: post a message with date May 21, 12:55 PM, than May 17, 3:43 PM, than May 20, 6:13 PM, the order in chat box get`s out off order. I thought my team inserted it directly through the database but they told me they used the API as I mentioned above in the post, but they are using this one (https://www.postman.com/chatwoot/workspace/chatwoot-apis/request/162770-8f87071b-9910-4271-935a-7a12d619d109) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
We are using a hystory sincronizatio off what’s app, the that’s are inserted correctly but the messages show in order based on index and must by first by date time than index
To Reproduce
Insert manual, through database or api, messages with old date after actual
Expected behavior
Show based on date time order
Environment
Docker
Cloud Provider
None
Platform
None
Operating system
No response
Browser and version
No response
Docker (if applicable)
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: