Skip to content

msglist: Softly override mark-read-on-scroll setting in starred/mentions #1659

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

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

Conversation

chrisbobbe
Copy link
Collaborator

@chrisbobbe chrisbobbe commented Jul 3, 2025

There isn't an existing discussion for this; I just had the idea now and thought I'd send a quick PR. Happy to start a discussion though if helpful.


This isn't so "soft" right now, because we don't offer a way to undo the override -- that's #1655, as the new comment says -- but conceptually this seems correct and seems to match web.

We'll do this for search, too, coming up.

This isn't so "soft" right now, because we don't offer a way to undo
the override -- that's zulip#1655, as the new comment says -- but
conceptually this seems correct and seems to match web.

We'll do this for search, too, coming up.
@chrisbobbe chrisbobbe requested a review from gnprice July 3, 2025 01:25
@chrisbobbe chrisbobbe added the integration review Added by maintainers when PR may be ready for integration label Jul 3, 2025
@chrisbobbe chrisbobbe force-pushed the pr-soft-override-mark-read-scroll-starred-mentions branch from 76bf701 to 7eba55f Compare July 3, 2025 01:28
Comment on lines +248 to +251
case MentionsNarrow():
case StarredMessagesNarrow():
// TODO(#1583) write tests for this
_markReadOnScroll = false;
Copy link
Member

Choose a reason for hiding this comment

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

Huh, is this really what web does? Even if you have the "Automatically mark messages as read" setting set to "Always"? (If that's either of the other values, then it's as if this were false anyway.)

As I said in the office earlier (probably a bit after you sent this PR), it seems fine to me if choosing "Always" for that setting means always. In particular that was the behavior Zulip web had, with no option to do something else, for a number of years.

In any event I think this isn't a blocker for search. With the default value of the auto-mark-read setting, at "conversations only", it'll have no effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration review Added by maintainers when PR may be ready for integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants