Skip to content
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

Closed
zhiru opened this issue May 22, 2024 · 5 comments
Closed

Order message a in conversation by date/timestamp #9524

zhiru opened this issue May 22, 2024 · 5 comments
Labels

Comments

@zhiru
Copy link

zhiru commented May 22, 2024

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

@zhiru zhiru added the Bug label May 22, 2024
Copy link

linear bot commented May 22, 2024

@zhiru
Copy link
Author

zhiru commented May 22, 2024

IMG_3655

@sojan-official
Copy link
Member

@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.

@sojan-official sojan-official closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
@zhiru
Copy link
Author

zhiru commented May 23, 2024

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)

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants