Indicate and sort on rooms with unread messages #205
Merged
+269
−62
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #83 by adding two new fields to sort on,
unread
andrecent
. I've updated the sort order for"rooms"
(and therefore by default all of the other room-like lists) to now be["favorite", "lowpriority", "unread", "name"]
, so that favorites will still be at the top, and low-priority items at the bottom of the list, with unreads at the top inside those groups, and finally sorted by names.The
"recent"
sort field can be used by folks who also want rooms to move within the list based on how recently someone has messaged there. This could potentially be annoying for users in multiple rooms with frequent activity that keep swapping positions in the list, so I haven't put it in the default sort.