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

sidebar sort: fix issue with recency #3390

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

patosullivan
Copy link
Member

My recent change to useRecentSort() didn't account for the fact that some channels/dms don't have any unreads.

This led to a bizarre looking recent sort order for groups.

This fixes that by defaulting to Number.NEGATIVE_INFINITY if we can't find an unread (rather than only if we can't find recency).

Tested locally on a live ship.

Fixes LAND-1747

PR Checklist

  • Includes changes to desk files
  • Describes how you tested the PR locally (test ship vs livenet)
  • If a new feature, includes automated tests
  • Comments added anywhere logic may be confusing without context

My recent change to useRecentSort() didn't account for the fact that some channels/dms don't have any unreads.

This led to a bizarre looking recent sort order for groups.

This fixes that by defaulting to Number.NEGATIVE_INFINITY if we can't find an unread (rather than only if we can't find recency).

Fixes LAND-1747
Copy link

linear bot commented Apr 4, 2024

Copy link
Member

@latter-bolden latter-bolden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@patosullivan patosullivan merged commit 0ac73a5 into develop Apr 4, 2024
1 check failed
@patosullivan patosullivan deleted the po/land-1747-fix-sidebar-recent-sort branch April 4, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants