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

Default Listing and Sort types not respected #857

Closed
zacharee opened this issue Jun 23, 2023 · 7 comments
Closed

Default Listing and Sort types not respected #857

zacharee opened this issue Jun 23, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@zacharee
Copy link

Jerboa Version
0.0.35

Describe the bug
I have the default Listing and Sort types set to Subscribed and TopDay respectively. When I open the app, I'm put on Local and Active.

My instance is sh.itjust.works, and I've tried resetting the app data and changing the settings to other values and back.

The settings are remembered correctly in the settings screen, but seem to be ignored.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Settings >> settings
  2. Set "Default Listing Type" to Subscribed and "Default Sort Type" to TopDay.
  3. Scroll down to the bottom and press "Save".
  4. Close and reopen the app and it will go back to Local and Active.
@zacharee zacharee added the bug Something isn't working label Jun 23, 2023
@nahwneeth
Copy link
Contributor

Fixed by #854

@kensand
Copy link

kensand commented Jun 25, 2023

#854 has introduced a new bug for me - attempting to change the sort behavior or listing type on the HomeActivity loads the correct sort behavior/listing type for a moment and then reloads the home back to All/Active.

Reverting 058e3c3 fixes the issue for me, so I'm almost positive that is the cause.

Let me know if you'd prefer I open a new issue for this

@kensand
Copy link

kensand commented Jun 25, 2023

Yup, I'm pretty sure the issue is that this line is called before loading the posts now, which just overwrites the potentially user-selected Sort/Type. How that gets remedied, I don't have an answer yet

@nahwneeth
Copy link
Contributor

nahwneeth commented Jun 26, 2023

@kensand

I wasn't able to reproduce this. The line you've linked only runs during startup, account switch & sign out. I did find some potential rewrite of the defaults (& the other way - the defaults overwriting home filters). I have tried to addressed it in #817. Could you please confirm if that fixes your issues? If not, would appreciate if you provided more info on what actions were made after changing the settings.

Update: I was using the test account but was able to reproduce this in my personal account. I've opened a new issue #886 with logs. Just wanted to ask, is your email verified? As that might be the cause for settings not getting saved.

@kensand
Copy link

kensand commented Jun 27, 2023

@nahwneeth I am verified - I pulled the latest commits and it seems to be working now - not sure what was happening, whether it be a glitch in the server's settings being saved or in Jerboa itself 🤷

@nahwneeth
Copy link
Contributor

nahwneeth commented Jun 27, 2023

Hey, yeah I updated it to read from the local db. The changes you made will not sync with the server and will not carry over if you use a new device. (In most cases)

@MV-GH
Copy link
Collaborator

MV-GH commented Jul 25, 2023

Should be fixed now

@MV-GH MV-GH closed this as completed Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants