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

Add soft reset to chat list #7771

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Feb 18, 2025

Realised this was missing. Now works like other tabs

Test plan

Check that chat list scrolls to top when pressing the tab

Copy link

Old size New size Diff
6.93 MB 6.93 MB -1.37 KB (-0.02%)

Copy link
Member

@estrattonbailey estrattonbailey left a comment

Choose a reason for hiding this comment

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

Scroll to top works, but I think we also want the listConvos query to refetch, right? That would need to be added to the listenSoftReset handler. Feed pages also truncate the infinite pagination cache first so that the query doesn't refetch all currently fetched pages, but that's probably less of an issue here.

@mozzius
Copy link
Member Author

mozzius commented Feb 18, 2025

I was thinking we don't need it to refetch since in theory it should be keep up to date via log polling

@estrattonbailey
Copy link
Member

Atm we poll every 60s, so could be a decent way get fresh data faster. I think we might as well add it here. What do you think?

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.

3 participants