-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
IM/DM messages sorting relies only on ts, unlike group messages #34008
Comments
Previously, the sorting for IM/DM messages relied only on the `ts` timestamp. This fix updates the logic to allow sorting by multiple parameters, similar to group messages, enhancing consistency across message types. Closes RocketChat#34008
This is really a feature request - the system isn't broken but just doesn't work the way you want it to. I'll refer it to the team but have no idea if this is something they want to fix or have another solution. I know there are various things happening regarding upgrading the interface so they may already have something in hand - and why you should always ask in the forums or on open before wasting time trying to fix things. Note that PRs can take a LONG time to get reviewed so don't expect anything back in a hurry. Thanks. |
@reetp Thank you for your reply! I would like to highlight that, according to the documentation, the sorting parameter is supposed to work with any property, not just the ts timestamp. That’s why I initially reported it as a bug. I would appreciate any clarification on this. |
You don't need to @ people thanks - it just gets annoying. Where does it say it in the docs? It may be that the docs need fixing. |
Regarding the IM messages retrieval: https://developer.rocket.chat/apidocs/list-dm-messages |
Thanks. I'll ask the team to review it. As per my previous, don't expect any response in a hurry! |
Thanks for your time. |
Thanks for reporting and the contribution; will ask folks to review |
Description:
Sorting for IM/DM messages currently uses only the ts (timestamp) field, whereas group messages support sorting by multiple parameters. This inconsistency limits flexibility and prevents custom sorting options for direct and instant messages.
Steps to reproduce:
Expected behavior:
IM/DM messages should support sorting by multiple parameters, similar to group messages, to allow consistent and customizable sorting behavior.
Actual behavior:
IM/DM messages are sorted only by the ts timestamp, regardless of the specified parameters.
Additional context
This issue creates inconsistency between group and IM/DM sorting functionality. Fixing this will align the behavior across all message types.
The text was updated successfully, but these errors were encountered: