Closed oskarprzybylski23 closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
kindly-v2zt | ✅ Ready (Inspect) | Visit Preview | Apr 16, 2024 11:39am |
Name | Link |
---|---|
Latest commit | 62b2649b70ba4c86475e0066d7fa94681ce90036 |
Latest deploy log | https://app.netlify.com/sites/hilarious-gnome-af728f/deploys/66224590c5a3030008d91fa7 |
Name | Link |
---|---|
Latest commit | 62b2649b70ba4c86475e0066d7fa94681ce90036 |
Latest deploy log | https://app.netlify.com/sites/cool-creponne-3e1272/deploys/6622459018bbaa0008fbd63b |
Deploy Preview | https://deploy-preview-176--cool-creponne-3e1272.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Thanks for this pr, it looks great 🤗 We have been discussing the feature and are leaning towards ordering the conversations by recent message so it looks like we no longer need this functionality. Keep on contributing!
Checklist:
Description
Relates #133 Closes #133
This PR introduced sorting of conversations chronologically based on joined_at field. When a new conversation is started and user is redirected to /conversations, new conversation sits at the top of the list and is opened as the current conversation by deafult.
Note: this fix sorts conversations based on when conversation was created and not based on latest message. E.g. when you send a new message the related conversation will not move to the top of the stack. This feature may be desired and should be further discussed.
Files changed
components/messaging/ConversationList.tsx
UI changes
No changes to UI as part of this PR, other than conversation now appear in order in which they were created.
Changes to Documentation
No changes needed as part of this PR
Tests
It is a minor change and it didn't require new tests in my opinion.