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

fixed: lists change positions randomly #183 #1756

Merged
merged 2 commits into from
Feb 6, 2025
Merged

Conversation

bryanmontz
Copy link
Contributor

@bryanmontz bryanmontz commented Feb 5, 2025

Issues covered

https://github.com/verse-pbc/issues/issues/183

Description

Fixes the issue where lists change order randomly.

Steps to Reproduce

  1. Navigate to the Feed tab
  2. Tap the feed customizer button at top-right
  3. Note the order of the lists
  4. Quit and relaunch the app
  5. Repeat steps 1-4 to see if the order changed

Videos

In the before video, you can see that the order of lists is different each time I launch the app. In the after video, the order is always the same.

Before After
before after

@@ -82,11 +82,7 @@ import SwiftUI
.publisher
.receive(on: DispatchQueue.main)
.sink(receiveValue: { [weak self] lists in
// ensure that we only publish the most recent list for each replaceable identifier
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This extra sorting code was needed while I was building this feature before I was correctly updating existing follow set events in CoreData. I believe it is no longer needed because we only have one event in CoreData for each list.

@pelumy
Copy link
Contributor

pelumy commented Feb 5, 2025

👀

@pelumy
Copy link
Contributor

pelumy commented Feb 5, 2025

This fixes the toggle issue for me. I was never able to reproduce the feed title switching positions, so I couldn't confirm that.

cc: @joshuatbrown and @mplorentz

@pelumy
Copy link
Contributor

pelumy commented Feb 6, 2025

approving and merging this because Bryan has included videos showing that the fix works.

Copy link
Contributor

@pelumy pelumy left a comment

Choose a reason for hiding this comment

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

🎉

@pelumy pelumy enabled auto-merge February 6, 2025 15:02
@pelumy pelumy added this pull request to the merge queue Feb 6, 2025
Merged via the queue into main with commit 95a969d Feb 6, 2025
4 checks passed
@pelumy pelumy deleted the bdm/183-list-order branch February 6, 2025 15:17
joshuatbrown pushed a commit that referenced this pull request Feb 6, 2025
fixed: lists change positions randomly #183

# Conflicts:
#	CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants